Fix repomanage behavior for 'old' packages

This commit is contained in:
Denis Silakov 2012-12-20 15:40:02 +04:00
parent 8a585e57c8
commit 8f413829b6

View file

@ -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))