mirror of
https://abf.rosa.ru/djam/urpm-tools.git
synced 2025-02-23 17:32:46 +00:00
Drop unnecessary flag checking
This commit is contained in:
parent
9afc2f37e4
commit
b782ad0711
1 changed files with 1 additions and 3 deletions
|
@ -141,9 +141,7 @@ def main(args):
|
||||||
options.new = False
|
options.new = False
|
||||||
|
|
||||||
ts = rpm.TransactionSet()
|
ts = rpm.TransactionSet()
|
||||||
if options.nocheck:
|
if not options.nocheck:
|
||||||
ts.setVSFlags(~(rpm._RPMVSF_NOPAYLOAD))
|
|
||||||
else:
|
|
||||||
ts.setVSFlags(~(rpm.RPMVSF_NOMD5|rpm.RPMVSF_NEEDPAYLOAD))
|
ts.setVSFlags(~(rpm.RPMVSF_NOMD5|rpm.RPMVSF_NEEDPAYLOAD))
|
||||||
|
|
||||||
for pkg in rpmList:
|
for pkg in rpmList:
|
||||||
|
|
Loading…
Add table
Reference in a new issue