mirror of
https://abf.rosa.ru/djam/urpm-tools.git
synced 2025-02-23 17:32:46 +00:00
Fix incorrect epoch detection with --obsoletes option
This commit is contained in:
parent
6788e4e2f5
commit
9afc2f37e4
1 changed files with 5 additions and 4 deletions
|
@ -210,9 +210,14 @@ def main(args):
|
||||||
# Check OBSOLETEFLAGS and OBSOLETEVERSION - do we really satisfy them?
|
# Check OBSOLETEFLAGS and OBSOLETEVERSION - do we really satisfy them?
|
||||||
really_obsoleted = 0;
|
really_obsoleted = 0;
|
||||||
oef = obsolete_flags[n][idx]
|
oef = obsolete_flags[n][idx]
|
||||||
|
oep = None
|
||||||
|
|
||||||
if obsolete_vers[n][idx].find("-") >= 0:
|
if obsolete_vers[n][idx].find("-") >= 0:
|
||||||
(over,orel) = obsolete_vers[n][idx].split("-");
|
(over,orel) = obsolete_vers[n][idx].split("-");
|
||||||
|
if orel.find(":") >= 0:
|
||||||
|
(orel,oep) = orel.split(":");
|
||||||
|
else:
|
||||||
|
oep = None
|
||||||
else:
|
else:
|
||||||
over = obsolete_vers[n][idx]
|
over = obsolete_vers[n][idx]
|
||||||
orel = None
|
orel = None
|
||||||
|
@ -222,10 +227,6 @@ def main(args):
|
||||||
else:
|
else:
|
||||||
oep = None
|
oep = None
|
||||||
|
|
||||||
if orel.find(":") >= 0:
|
|
||||||
(orel,oep) = orel.split(":");
|
|
||||||
else:
|
|
||||||
oep = None
|
|
||||||
|
|
||||||
# Ignore epochs for now ...
|
# Ignore epochs for now ...
|
||||||
rc = miscutils.compareEVR((0, v, r), (0, over, orel))
|
rc = miscutils.compareEVR((0, v, r), (0, over, orel))
|
||||||
|
|
Loading…
Add table
Reference in a new issue