mirror of
https://abf.rosa.ru/djam/urpm-tools.git
synced 2025-02-23 17:32:46 +00:00
Fix repomanage behavior for 'old' packages
This commit is contained in:
parent
8a585e57c8
commit
8f413829b6
1 changed files with 4 additions and 0 deletions
|
@ -134,6 +134,10 @@ def main(args):
|
|||
errorprint(_('No files to process'))
|
||||
sys.exit(1)
|
||||
|
||||
# 'New' is still used by default to be compatible with repomanage from yum-utils
|
||||
if options.obsolete or options.old:
|
||||
options.new = False
|
||||
|
||||
ts = rpm.TransactionSet()
|
||||
if options.nocheck:
|
||||
ts.setVSFlags(~(rpm._RPMVSF_NOPAYLOAD))
|
||||
|
|
Loading…
Add table
Reference in a new issue