Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rmt-cli repos clean is not removing the license directories #902

Open
digitaltom opened this issue Jun 1, 2022 · 0 comments
Open

rmt-cli repos clean is not removing the license directories #902

digitaltom opened this issue Jun 1, 2022 · 0 comments
Assignees
Labels

Comments

@digitaltom
Copy link
Member

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 digitaltom added the bug label Jun 1, 2022
@ngetahun ngetahun self-assigned this Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants