rmt icon indicating copy to clipboard operation
rmt copied to clipboard

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

Open digitaltom opened this issue 2 years ago • 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)

digitaltom avatar Jun 01 '22 09:06 digitaltom