Suppress duplicate depsolving log messages.
This commit is contained in:
parent
dd6a68eb7c
commit
77dea0ec92
@ -367,6 +367,7 @@ class Pungi(pypungi.PungiBase):
|
|||||||
depsack = yum.packageSack.ListPackageSack(deps)
|
depsack = yum.packageSack.ListPackageSack(deps)
|
||||||
|
|
||||||
for dep in depsack.returnNewestByNameArch():
|
for dep in depsack.returnNewestByNameArch():
|
||||||
|
if dep not in added:
|
||||||
self.ayum.tsInfo.addInstall(dep)
|
self.ayum.tsInfo.addInstall(dep)
|
||||||
self.logger.info('Added %s.%s for %s.%s' % (dep.name, dep.arch, po.name, po.arch))
|
self.logger.info('Added %s.%s for %s.%s' % (dep.name, dep.arch, po.name, po.arch))
|
||||||
added.append(dep)
|
added.append(dep)
|
||||||
@ -380,12 +381,13 @@ class Pungi(pypungi.PungiBase):
|
|||||||
continue
|
continue
|
||||||
match = self.ayum._bestPackageFromList(pkg_sack)
|
match = self.ayum._bestPackageFromList(pkg_sack)
|
||||||
dep = match
|
dep = match
|
||||||
|
if dep not in added:
|
||||||
self.ayum.install(dep)
|
self.ayum.install(dep)
|
||||||
|
self.logger.info('Added %s.%s for %s.%s' % (dep.name, dep.arch, po.name, po.arch))
|
||||||
|
added.append(dep)
|
||||||
except (yum.Errors.InstallError, yum.Errors.YumBaseError), ex:
|
except (yum.Errors.InstallError, yum.Errors.YumBaseError), ex:
|
||||||
self.logger.warn("Unresolvable dependency %s in %s.%s" % (r, po.name, po.arch))
|
self.logger.warn("Unresolvable dependency %s in %s.%s" % (r, po.name, po.arch))
|
||||||
continue
|
continue
|
||||||
self.logger.info('Added %s.%s for %s.%s' % (dep.name, dep.arch, po.name, po.arch))
|
|
||||||
added.append(dep)
|
|
||||||
|
|
||||||
self.resolved_deps[req] = None
|
self.resolved_deps[req] = None
|
||||||
for add in added:
|
for add in added:
|
||||||
|
Loading…
Reference in New Issue
Block a user