[yum-git] debuginfo-install.py

Seth Vidal skvidal at linux.duke.edu
Thu Mar 13 20:41:36 UTC 2008


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

New commits:
commit 2498d558abb351f7dfc240b28d1a05e415436ad5
Author: Seth Vidal <skvidal at fedoraproject.org>
Date:   Thu Mar 13 16:38:24 2008 -0400

    apply patch from Jan Kratochvil (jan.kratochvil at redhat.com) to make debuginfo-install obey arch

diff --git a/debuginfo-install.py b/debuginfo-install.py
index 72962c4..1f17d68 100755
--- a/debuginfo-install.py
+++ b/debuginfo-install.py
@@ -83,12 +83,12 @@ class DebugInfoInstall(YumUtilBase):
         self.doUnlock()    
     def di_try_install(self, po):
         di_name = '%s-debuginfo' % po.name
-        if self.pkgSack.searchNevra(name=di_name):
+        if self.pkgSack.searchNevra(name=di_name, arch=po.arch):
             test_name = di_name
         else:
             srpm_name = rpmUtils.miscutils.splitFilename(po.sourcerpm)[0] # take the srpmname
             test_name = '%s-debuginfo' % srpm_name
-        self.install(name=test_name, version=po.version, release=po.release)            
+        self.install(name=test_name, arch=po.arch, version=po.version, release=po.release)            
                 
         
     def debugInfo_main(self):



More information about the Yum-cvs-commits mailing list