Drop unnecessary flag checking

This commit is contained in:
Denis Silakov 2013-04-22 14:55:55 +04:00
parent 9afc2f37e4
commit b782ad0711

View file

@ -141,9 +141,7 @@ def main(args):
options.new = False
ts = rpm.TransactionSet()
if options.nocheck:
ts.setVSFlags(~(rpm._RPMVSF_NOPAYLOAD))
else:
if not options.nocheck:
ts.setVSFlags(~(rpm.RPMVSF_NOMD5|rpm.RPMVSF_NEEDPAYLOAD))
for pkg in rpmList: