fedora-rpmdevtools rpmdev-vercmp, 1.1.2.1, 1.1.2.2 rpmdevtools.spec, 1.19.2.1, 1.19.2.2
Ville Skytta (scop)
fedora-extras-commits at redhat.com
Sat Jul 7 08:47:29 UTC 2007
Author: scop
Update of /cvs/fedora/fedora-rpmdevtools
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv23842
Modified Files:
Tag: rpmdevtools-5
rpmdev-vercmp rpmdevtools.spec
Log Message:
Fix Epoch handling in the 2-arg form of rpmdev-vercmp with yum < 3.1.2.
Index: rpmdev-vercmp
===================================================================
RCS file: /cvs/fedora/fedora-rpmdevtools/rpmdev-vercmp,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -r1.1.2.1 -r1.1.2.2
--- rpmdev-vercmp 5 Jul 2007 21:19:44 -0000 1.1.2.1
+++ rpmdev-vercmp 7 Jul 2007 08:47:26 -0000 1.1.2.2
@@ -36,6 +36,10 @@
if have_miscutils:
(e1, v1, r1) = stringToVersion(sys.argv[1])
(e2, v2, r2) = stringToVersion(sys.argv[2])
+ # stringToVersion in yum < 3.1.2 may return numeric (non-string)
+ # Epochs, and labelCompare does not like that.
+ if e1 is not None: e1 = str(e1)
+ if e2 is not None: e2 = str(e2)
else:
print """
Sorry, the 2-argument form is available only if rpmUtils.miscutils (which
Index: rpmdevtools.spec
===================================================================
RCS file: /cvs/fedora/fedora-rpmdevtools/rpmdevtools.spec,v
retrieving revision 1.19.2.1
retrieving revision 1.19.2.2
diff -u -r1.19.2.1 -r1.19.2.2
--- rpmdevtools.spec 5 Jul 2007 21:19:44 -0000 1.19.2.1
+++ rpmdevtools.spec 7 Jul 2007 08:47:26 -0000 1.19.2.2
@@ -135,6 +135,9 @@
%changelog
+* Sat Jul 7 2007 Ville Skyttä <ville.skytta at iki.fi>
+- Fix Epoch handling in the 2-arg form of rpmdev-vercmp with yum < 3.1.2.
+
* Thu Jul 5 2007 Ville Skyttä <ville.skytta at iki.fi>
- Add cmake and scons to default devel package list in rpmdev-rmdevelrpms.
- Add LSB comment block to init script template.
More information about the fedora-extras-commits
mailing list