[yum-commits] debuginfo-install.py

James Antill james at osuosl.org
Fri Jan 16 15:57:08 UTC 2009


 debuginfo-install.py |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

New commits:
commit e5681d6c405bd08e8ebb8d01b26545cdc03498fd
Author: James Antill <james at and.org>
Date:   Fri Jan 16 10:56:56 2009 -0500

    For debuginfo for .src.rpm get ver/rel from same, fixes BZ 480316

diff --git a/debuginfo-install.py b/debuginfo-install.py
index 009a7ab..2dfc5b7 100755
--- a/debuginfo-install.py
+++ b/debuginfo-install.py
@@ -87,12 +87,13 @@ class DebugInfoInstall(YumUtilBase):
         di_name = '%s-debuginfo' % po.name
         if self.pkgSack.searchNevra(name=di_name, arch=po.arch):
             test_name = di_name
+            ver, rel = po.version, po.release
         else:
-            srpm_name = rpmUtils.miscutils.splitFilename(po.sourcerpm)[0] # take the srpmname
+            srpm_data = rpmUtils.miscutils.splitFilename(po.sourcerpm) # take the srpmname
+            srpm_name, ver, rel = srpm_data[0], srpm_data[1], srpm_data[2]
             test_name = '%s-debuginfo' % srpm_name
-        self.install(name=test_name, arch=po.arch, version=po.version, release=po.release)            
-                
-        
+        self.install(name=test_name, arch=po.arch, version=ver, release=rel)
+
     def debugInfo_main(self):
         """for each package specified, walk the package's list of deps and install
            all the -debuginfo pkgs that match it and its debuginfo"""


More information about the Yum-commits mailing list