mirror of
https://abf.rosa.ru/djam/urpm-tools.git
synced 2025-02-23 09:22:47 +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?
|
||||
really_obsoleted = 0;
|
||||
oef = obsolete_flags[n][idx]
|
||||
oep = None
|
||||
|
||||
if obsolete_vers[n][idx].find("-") >= 0:
|
||||
(over,orel) = obsolete_vers[n][idx].split("-");
|
||||
if orel.find(":") >= 0:
|
||||
(orel,oep) = orel.split(":");
|
||||
else:
|
||||
oep = None
|
||||
else:
|
||||
over = obsolete_vers[n][idx]
|
||||
orel = None
|
||||
|
@ -222,10 +227,6 @@ def main(args):
|
|||
else:
|
||||
oep = None
|
||||
|
||||
if orel.find(":") >= 0:
|
||||
(orel,oep) = orel.split(":");
|
||||
else:
|
||||
oep = None
|
||||
|
||||
# Ignore epochs for now ...
|
||||
rc = miscutils.compareEVR((0, v, r), (0, over, orel))
|
||||
|
|
Loading…
Add table
Reference in a new issue