[yum-cvs] yum-utils repomanage.py,1.1,1.2
Seth Vidal
skvidal at login.linux.duke.edu
Mon Jun 13 04:53:18 UTC 2005
Update of /home/groups/yum/cvs/yum-utils
In directory login:/tmp/cvs-serv15043
Modified Files:
repomanage.py
Log Message:
call the 'arch' for src.rpms as 'src' - not the arch it was built on.
thanks to Pasi Pirhonen for pointing it out.
Index: repomanage.py
===================================================================
RCS file: /home/groups/yum/cvs/yum-utils/repomanage.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- repomanage.py 21 Mar 2005 08:42:29 -0000 1.1
+++ repomanage.py 13 Jun 2005 04:53:16 -0000 1.2
@@ -81,7 +81,11 @@
def hdr2pkgTuple(hdr):
name = hdr['name']
- arch = hdr['arch']
+ if hdr[rpm.RPMTAG_SOURCEPACKAGE] == 1:
+ arch = 'src'
+ else:
+ arch = hdr['arch']
+
ver = str(hdr['version']) # convert these to strings to be sure
rel = str(hdr['release'])
epoch = hdr['epoch']
More information about the Yum-cvs-commits
mailing list