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

Makecache improvements #186

Conversation

cgwalters
Copy link
Contributor

Two patches for makecache (not actually tested, but they're pretty simple...)

I was going to change this to use "exec", but realized that the
current behavior may be somewhat intentional.  Document it.
In the case of an upgraded system from Fedora 20 where dnf wasn't
installed, and the user continues to use yum (or PackageKit), we'll be
pointlessly downloading metadata even if dnf is not in use.

See: https://lists.fedoraproject.org/pipermail/devel/2014-December/205506.html

Reported-by: Hedayat Vatankhah <hedayat.fwd@gmail.com>
@ghost
Copy link

ghost commented Jan 13, 2015

My impression is that this file is not used anymore. I'm about to close the pull request and delete the file. @cgwalters, did I miss something?

Moreover, I think the "Only run if we have a cache at all" change is not needed. If DNF will be accepted as the default, the change wouldn't solve anything then. So the change is useful only for Fedora 21 where the problem can be worked around by removing DNF. The change also is not very systematic since a user can even by accident run DNF for the first time and then the problem is back again.

@cgwalters
Copy link
Contributor Author

Right, looks like dnf-makecache.service directly execs dnf now. Makes sense to delete the old cron file.

As far as the concept, there is the case of users who never touch commandline packaging and only use GNOME Software - in that case, the dnf cache is not used. But I don't have a really strong opinion myself, it's clear long term that we'll need a better unified caching story.

@ghost ghost self-assigned this Jan 14, 2015
@ghost
Copy link

ghost commented Jan 14, 2015

OK, we'll discuss whether we can come up with a better solution for users that (almost) never use DNF. (We should also take into account the other applications that uses DNF) We'll appreciate if someone files a Bugzilla for that so we can close this PR and track it in Bugzilla.

@jsilhan jsilhan closed this Jan 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants