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
Fix command clean #921
Fix command clean #921
Conversation
dnf/repo.py
Outdated
def repo_cache_files_pattern(type, repo): | ||
if type == 'metadata': | ||
return r'^%s\/.*(xml(\.gz|\.xz|\.bz2)?|asc|cachecookie|%s)$' % \ | ||
(repo._cachedir_name, dnf.repo._MIRRORLIST_FILENAME) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[flake8]
- [E121] continuation line under-indented for hanging indent
c319ed5
to
23d4085
Compare
@jrohel Is it ready to review? |
@rh-atomic-bot try |
Closes: #921 Approved by: <try>
"--allrepos" is much powerfull then "--enablerepo=*" because it works for all repositories. Eg. repositories for different release version are included. Closes: #921 Approved by: <try>
💥 Test timed out |
@rh-atomic-bot try |
@jrohel Is it ready to review? |
@rh-atomic-bot try |
23d4085
to
a90eea7
Compare
Added option "--enabled". Command "clean" cleans temporary files for all repositories by default. Only enabled repositories are cleaned by using option "--enabled". Option "--enabled" is automaticaly activated if list of enabled repositories is changed from commandline ("--repo". "--enablerepo", "--disablerepo").
a90eea7
to
124e144
Compare
@rh-atomic-bot try |
Added option "--enabled". Command "clean" cleans temporary files for all repositories by default. Only enabled repositories are cleaned by using option "--enabled". Option "--enabled" is automaticaly activated if list of enabled repositories is changed from commandline ("--repo". "--enablerepo", "--disablerepo"). Closes: #921 Approved by: <try>
☀️ Test successful - status-papr |
Closing as decided in the team meeting. |
First commit fixes "Bug 1330211 - RFE: dnf clean does not respect enablerepo/disablerepo anymore"
Added option "--enabled".
Command "clean" cleans temporary files for all repositories by default.
Only enabled repositories are cleaned by using option "--enabled".
Option "--enabled" will be automaticaly activated if list of enabled repositories
is changed from commandline ("--repo". "--enablerepo", "--disablerepo").