mirror of
https://abf.rosa.ru/djam/urpm-tools.git
synced 2025-02-23 17:32:46 +00:00
Add versions to obsoleted packages
This commit is contained in:
parent
13ebb786de
commit
1a7cc57cf0
1 changed files with 8 additions and 5 deletions
|
@ -187,12 +187,15 @@ def main(args):
|
|||
|
||||
if options.obsolete:
|
||||
for (n,a) in pkgdict.keys():
|
||||
evrlist = pkgdict[(n,a)]
|
||||
if n in obsolete:
|
||||
print n
|
||||
if options.verbose:
|
||||
print >> sys.stderr, n + " is obsoleted by:"
|
||||
for replacement in obsolete[n]:
|
||||
print >> sys.stderr, " " + replacement
|
||||
for pkg in evrlist:
|
||||
(e,v,r,d) = pkg
|
||||
print str(verfile[(n,a,e,v,r,d)]).replace("['","").replace("']","")
|
||||
if options.verbose:
|
||||
print >> sys.stderr, str(verfile[(n,a,e,v,r,d)]).replace("['","").replace("']","") + " is obsoleted by:"
|
||||
for replacement in obsolete[n]:
|
||||
print >> sys.stderr, " " + replacement
|
||||
|
||||
#if new
|
||||
if options.new:
|
||||
|
|
Loading…
Add table
Reference in a new issue