Browse files

always initialize filelists.

turns out it is often needed for resolving too as some packages require
/lib/ and other only explicitly provide

later dnf should use hawkey callback so dnf only loads filelists on-demand.

yes, clear conventions about how to require a lib from rpm spec would save
us time here, if applied accross all packages (holds true for the callback
approach too).
  • Loading branch information...
1 parent 680eb5b commit 8ac6db6b31e736b46b672cf9ac105985158d50ac Ales Kozumplik committed May 14, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 dnf/yum/
@@ -235,6 +235,7 @@ def sack(self):
return self._sack
# Create the Sack, tell it how to build packages, passing in the Package
# class and a YumBase reference.
+ start = time.time()
self._sack = sack.Sack(pkgcls=package.Package, pkginitval=self)
for r in self.repos.listEnabled():
@@ -244,6 +245,9 @@ def sack(self):
self._sack.installonly = self.conf.installonlypkgs
+ self._sack.ensure_filelists(self.repos)
+ self.verbose_logger.debug('hawkey sack setup time: %0.3f' %
+ (time.time() - start))
return self._sack
def close(self):

0 comments on commit 8ac6db6

Please sign in to comment.