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

Fix command clean #921

Closed

Conversation

jrohel
Copy link
Contributor

@jrohel jrohel commented Sep 12, 2017

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").

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)
Copy link
Member

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

@j-mracek
Copy link
Member

@jrohel Is it ready to review?

@j-mracek
Copy link
Member

@rh-atomic-bot try

@rh-atomic-bot
Copy link

⌛ Trying commit 23d4085 with merge 9da8769...

rh-atomic-bot pushed a commit that referenced this pull request Sep 26, 2017
rh-atomic-bot pushed a commit that referenced this pull request Sep 26, 2017
"--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>
@rh-atomic-bot
Copy link

💥 Test timed out

@ignatenkobrain
Copy link
Contributor

@rh-atomic-bot try

@j-mracek
Copy link
Member

j-mracek commented Oct 3, 2017

@jrohel Is it ready to review?

@j-mracek
Copy link
Member

j-mracek commented Oct 9, 2017

@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").
@j-mracek
Copy link
Member

@rh-atomic-bot try

@rh-atomic-bot
Copy link

⌛ Trying commit 124e144 with merge dab8a56...

rh-atomic-bot pushed a commit that referenced this pull request Oct 16, 2017
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>
@rh-atomic-bot
Copy link

☀️ Test successful - status-papr
State: approved= try=True

@dmach
Copy link

dmach commented Feb 28, 2018

Closing as decided in the team meeting.
We'll probably address this in libdnf instead.

@dmach dmach closed this Feb 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants