scripts: add clean of build dir to dl_cleanup script
authorAnsuel Smith <ansuelsmth@gmail.com>
Tue, 6 Jul 2021 01:28:55 +0000 (03:28 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Tue, 13 Sep 2022 23:34:47 +0000 (01:34 +0200)
commitcf2c9498bed5e2f34170ada394be26348949f107
treecb6fd5cc855fc9c6838f5024db508ba235313cda
parent69760d415dddb0325bd0eb6bb607624747a2da6e
scripts: add clean of build dir to dl_cleanup script

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