- del transitions[remove]
- destfile = file(Cnf["Dinstall::Reject::ReleaseTransitions"], 'w')
- dump(transitions, destfile)
+ if Options["No-Action"]:
+ print "I: I would remove the %s transition" % (remove)
+ else:
+ del transitions[remove]
+ if not Options["No-Action"]:
+ destfile = file(Cnf["Dinstall::Reject::ReleaseTransitions"], 'w')
+ dump(transitions, destfile)