Create a little package sack out of dep providers to grab just the newest ones
This commit is contained in:
parent
7c88b058e1
commit
7a16c58d83
@ -1,3 +1,6 @@
|
||||
* Tue Jun 19 2007 Jesse Keating <jkeating@redhat.com>
|
||||
- Only grab the newest of deps.
|
||||
|
||||
* Wed Jun 13 2007 Jesse Keating <jkeating@redhat.com>
|
||||
- Don't use flavor for a log file if no flavor set (Trac #48)
|
||||
- Point to the right manifest file in pungi.conf
|
||||
|
@ -119,7 +119,9 @@ class Gather(yum.YumBase):
|
||||
self.logger.warn("Unresolvable dependency %s in %s.%s" % (r, po.name, po.arch))
|
||||
continue
|
||||
|
||||
for dep in deps:
|
||||
depsack = yum.packageSack.ListPackageSack(deps)
|
||||
|
||||
for dep in depsack.returnNewestByNameArch():
|
||||
self.tsInfo.addInstall(dep)
|
||||
if not self.config.has_option('default', 'quiet'):
|
||||
self.logger.info('Added %s.%s for %s.%s' % (dep.name, dep.arch, po.name, po.arch))
|
||||
|
Loading…
Reference in New Issue
Block a user