fix logic bug in grp_pkg_add
This commit is contained in:
parent
fe2e866d83
commit
10d58eafb5
1 changed files with 4 additions and 0 deletions
|
|
@ -1382,6 +1382,10 @@ def grp_req_add(taginfo,grpinfo,reqinfo,block=False,force=False,**opts):
|
|||
changed = True
|
||||
else:
|
||||
opts[field] = old
|
||||
if block:
|
||||
#from condition above, either previous is not blocked or force is on,
|
||||
#either way, we should add the entry
|
||||
changed = True
|
||||
if not changed:
|
||||
#no point in adding it again with the same data
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue