[yum-git] debuginfo-install.py
Seth Vidal
skvidal at linux.duke.edu
Fri Mar 14 04:22:33 UTC 2008
debuginfo-install.py | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
New commits:
commit 702bf954c2cfb2616fab706090332c311b6dedf0
Author: Seth Vidal <skvidal at fedoraproject.org>
Date: Fri Mar 14 00:19:17 2008 -0400
for rhbug #437427 - only install debuginfo's for deps if the requirment
is a library of some type. So we check if the requirement contains ".so".
if it does, install it, too.
diff --git a/debuginfo-install.py b/debuginfo-install.py
index 1f17d68..436e40f 100755
--- a/debuginfo-install.py
+++ b/debuginfo-install.py
@@ -111,13 +111,14 @@ class DebugInfoInstall(YumUtilBase):
for (n,f,v) in po.requires:
if n.startswith('rpmlib'):
continue
- for pkgtup in self.rpmdb.whatProvides(n,f,v):
- deppo = self.rpmdb.searchPkgTuple(pkgtup)[0]
- try:
- self.di_try_install(deppo)
- except yum.Errors.InstallError, e:
- self.logger.critical('Could not find debuginfo pkg for dependency package %s' % deppo)
-
+ if n.find('.so') != -1:
+ for pkgtup in self.rpmdb.whatProvides(n,f,v):
+ deppo = self.rpmdb.searchPkgTuple(pkgtup)[0]
+ try:
+ self.di_try_install(deppo)
+ except yum.Errors.InstallError, e:
+ self.logger.critical('Could not find debuginfo pkg for dependency package %s' % deppo)
+
if __name__ == '__main__':
util = DebugInfoInstall()
More information about the Yum-cvs-commits
mailing list