SUSE/rmt

`rmt-cli repos clean` is not removing the license directories

digitaltom opened this issue · 0 comments

rmt-cli repos clean is not completely removing all of the directory structure created when the repo is mirrored. When they disable the repo and run rmt-cli repos clean they still see the following:

/usr/share/rmt/public/repo/SUSE/Products/SLE-HA/12-SP4
/usr/share/rmt/public/repo/SUSE/Products/SLE-HA/12-SP4
/usr/share/rmt/public/repo/SUSE/Products/SLE-HA/12-SP4/x86_64
/usr/share/rmt/public/repo/SUSE/Products/SLE-HA/12-SP4/x86_64/product.license
/usr/share/rmt/public/repo/SUSE/Products/SLE-HA/12-SP4/x86_64/product.license/license.fr.txt

We should make sure that the whole /usr/share/rmt/public/repo/SUSE/Products/SLE-HA/12-SP4/x86_64 directory gets dropped in that case. Also, it seems the code doesn't delete the DownloadedFile rows from the database? (lib/rmt/cli/repos.rb:58)