scripts: add missing regex for dl_cleanup script
authorAnsuel Smith <ansuelsmth@gmail.com>
Mon, 5 Jul 2021 22:56:21 +0000 (00:56 +0200)
committerPaul Spooren <mail@aparcar.org>
Thu, 23 Sep 2021 05:51:44 +0000 (19:51 -1000)
commit4eb4c3c469a7b38266957d8a14d27e894e4da494
tree91c44577265725e72bbc59e07d96d45e89ca3029
parentf48ced582dd33b6d0921f5851c1ea2cef2ff730c
scripts: add missing regex for dl_cleanup script

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/dl_cleanup.py