fix logic bug in grp_pkg_add

This commit is contained in:
Michael McLean 2007-03-21 12:55:15 -04:00
parent fe2e866d83
commit 10d58eafb5

View file

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