Opened 8 years ago

Closed 6 years ago

#5515 closed defect (fixed)

Script the removal of packages from vescum

Reported by: Sebastian Owned by: phobos
Priority: Medium Milestone:
Component: Webpages/Website Version:
Severity: Keywords:
Cc: phobos Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

Currently we have the problem that sometimes, a still-referenced version of a package gets removed from vescum too early. We should figure out some kind of script that produces a list of all packages it thinks are OK to delete, and then that list can be used to sanity-check the to be removed packages. Note that I don't mean automated deletion, as this probably produces issuse with newly transferred stuff. If this script works well and we manage to get some sanity injected into the package uploading process, we can then automate it.

Assigning this to me for now, because I don't think phobos will want to do it

Child Tickets

Attachments (3)

rm_outfiles.pl (4.6 KB) - added by phobos 6 years ago.
first version of the script
rm_outfiles.2.pl (4.6 KB) - added by phobos 6 years ago.
v2 of the script
rm_outfiles.3.pl (4.6 KB) - added by phobos 6 years ago.
version 3 of the script, now with logging!

Download all attachments as: .zip

Change History (8)

comment:1 Changed 6 years ago by phobos

Owner: changed from Sebastian to phobos
Status: newaccepted

comment:2 Changed 6 years ago by phobos

Have a person interested in doing this as a project.

Changed 6 years ago by phobos

Attachment: rm_outfiles.pl added

first version of the script

Changed 6 years ago by phobos

Attachment: rm_outfiles.2.pl added

v2 of the script

comment:3 Changed 6 years ago by phobos

The script works. Going to add logging so one can see which files are removed as obsolete.

Changed 6 years ago by phobos

Attachment: rm_outfiles.3.pl added

version 3 of the script, now with logging!

comment:4 Changed 6 years ago by phobos

Testing runs work well. Here's a sample:

perl ~/rm_outfiles.pl include/versions.wmi dist/
Deleted old package: dist/vidalia-bundles/vidalia-bridge-bundle-0.2.4.20-0.2.21.exe.asc
Deleted old package: dist/vidalia-bundles/vidalia-bridge-bundle-0.2.4.20-0.2.21.exe
Deleted old package: dist/vidalia-bundles/vidalia-exit-bundle-0.2.4.20-0.2.21.exe.asc
Deleted old package: dist/vidalia-bundles/vidalia-exit-bundle-0.2.4.20-0.2.21.exe
Deleted old package: dist/vidalia-bundles/vidalia-relay-bundle-0.2.4.20-0.2.21.exe
Deleted old package: dist/vidalia-bundles/vidalia-relay-bundle-0.2.4.20-0.2.21.exe.asc
Deleted old package: dist/win32/tor-0.2.4.19-win32.exe.asc
Deleted old package: dist/win32/tor-0.2.4.20-win32.exe.asc
Deleted old package: dist/win32/tor-0.2.4.20-win32.exe
Deleted old package: dist/win32/tor-0.2.4.19-win32.exe
Deleted old package: dist/vidalia-bundles/vidalia-exit-bundle-0.2.4.20-0.2.21.exe.asc
Deleted old package: dist/vidalia-bundles/vidalia-exit-bundle-0.2.4.20-0.2.21.exe
Deleted old package: dist/vidalia-bundles/vidalia-relay-bundle-0.2.4.20-0.2.21.exe
Deleted old package: dist/vidalia-bundles/vidalia-relay-bundle-0.2.4.20-0.2.21.exe.asc
Deleted old package: dist/vidalia-bundles/vidalia-bridge-bundle-0.2.4.20-0.2.21.exe.asc
Deleted old package: dist/vidalia-bundles/vidalia-bridge-bundle-0.2.4.20-0.2.21.exe
Deleted old package: dist/win32/tor-0.2.4.19-win32.exe.asc
Deleted old package: dist/win32/tor-0.2.4.20-win32.exe.asc
Deleted old package: dist/win32/tor-0.2.4.20-win32.exe
Deleted old package: dist/win32/tor-0.2.4.19-win32.exe
Done!

comment:5 Changed 6 years ago by phobos

Resolution: fixed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.