aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/dl_cleanup.py
Commit message (Collapse)AuthorAgeFilesLines
* 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