aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/dl_cleanup.py
Commit message (Collapse)AuthorAgeFilesLines
* scripts: fix dl_cleanup.py argument handlingAndre Heider2022-11-151-3/+6
| | | | | | | | | | The -w|--whitelist and -D|--download-dir arguments pass an additional value, properly evaluate that. Also allow to pass the download directory without -D|--download-dir, just as the usage describes. Finally fix spitting out the wrong error messages about those args. Signed-off-by: Andre Heider <a.heider@gmail.com>
* scripts/dl_cleanup: add support for subdirectoriesMichael Pratt2022-09-221-9/+18
| | | | | | | | | | | Allow comparing subdirectories exactly like files. Handle a corner case where the new subdirectory has the same tarball inside of it as the one that was downloaded before a subdirectory for that package was established. Signed-off-by: Michael Pratt <mcpratt@pm.me>
* scripts: add clean of build dir to dl_cleanup scriptAnsuel Smith2022-09-141-3/+35
| | | | | | | | | | Improve dl_cleanup by adding an option to also clean the build directory related to the downloaded package. The script will check every directory in build_dir/ and check if any old package is present there. If outdated package are found, the old one are cleared leaving only the last one. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* scripts: assume dl/ the default dir for dl_cleanup scriptAnsuel Smith2022-09-141-8/+12
| | | | | | | Assume dl/ the default dl dir and make it configurable if someone have that in a different place. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* scripts: add additional regex for dl_cleanupAnsuel Smith2022-09-141-0/+2
| | | | | | | Add additional regex for dl_cleanup script to handle case with xxx-v1.2a and xxx-v1.2.3a Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* scripts: handle gcc and linux in dl_cleanup scriptAnsuel Smith2021-09-221-2/+2
| | | | | | | | | | | Handle gcc and linux with a special regex that set their progname with their major version. This way every minor version can be cleared. The build cleanup logic can be tweaked later to clean the entire toolchain and target dir with a different gcc version. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com> [reformat commit message] Signed-off-by: Paul Spooren <mail@aparcar.org>
* scripts: format dl_cleanup to black format python styleAnsuel Smith2021-09-221-199/+230
| | | | | | Forma dl_cleanup python script to black style. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* scripts: add missing regex for dl_cleanup scriptAnsuel Smith2021-09-221-0/+8
| | | | | | | | | | | | | | | Regex xxx-YYYY-MM-DD-GIT_SHASUM was missing. Add the new regex to improve and better find outdated package. This also fix a bug where some bug were incorrectly detected as packagename-yyyy-mm-dd instead of packagename due to them be parsed by the wrong parser Example: openwrt-keyring-2021-02-20-49283916.tar.xz Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com> [added example in commit message] Signed-off-by: Paul Spooren <mail@aparcar.org>
* scripts: check if dl directory exist in dl_cleanup scriptAnsuel Smith2021-07-051-0/+5
| | | | | | Check if the provided dl directory exist and return on error. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* dl_cleanup: Fix linux blacklistMichael Büsch2015-10-071-2/+5
| | | | SVN-Revision: 47157
* dl_cleanup: Port to Python 3Michael Büsch2015-10-071-26/+29
| | | | SVN-Revision: 47156
* packages: fix typo in OpenWrt nameJohn Crispin2014-12-071-2/+2
| | | | | | Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com> SVN-Revision: 43542
* scripts: dl_cleanup.py: properly detect file names with <date>-<githash> ↵Jo-Philipp Wich2013-05-261-1/+1
| | | | | | version string SVN-Revision: 36729
* Add xz compressed packages to known extensions of dl_cleanupGabor Juhos2013-02-171-1/+5
| | | | | | | | | Add .tar.xz, .txz, and .orig.tar.xz as known extensions to dl_cleanup.py. Signed-off-by: Ian Leonard <antonlacon@gmail.com> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 35645
* dl_cleanup: Add support for GIT-SHASUMMichael Büsch2010-09-181-6/+16
| | | | SVN-Revision: 23084
* Fix dl_cleanup.pyMichael Büsch2010-08-101-1/+2
| | | | SVN-Revision: 22578
* dl_cleanup: Show it to the user, if file extension or version pattern is unknownMichael Büsch2010-01-091-7/+3
| | | | SVN-Revision: 19085
* dl_cleanup: Add regex for foo_1_2_3Michael Büsch2010-01-091-3/+9
| | | | SVN-Revision: 19084
* dl_cleanup: Allow removing items from blacklistMichael Büsch2010-01-091-4/+15
| | | | SVN-Revision: 19083
* dl_cleanup: Add linux and gcc to blacklistMichael Büsch2010-01-091-10/+17
| | | | SVN-Revision: 19082
* dl_cleanup: Add dry-run optionMichael Büsch2010-01-091-6/+26
| | | | SVN-Revision: 19081
* dl_cleanup: Utility to delete all but the very last version of the tarballs ↵Michael Büsch2010-01-031-0/+176
in the download directory. The tool does currently have a few false positives (probably below 1%), but this is harmless, because buildroot will just redownload them. SVN-Revision: 19018