1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-25 03:32:15 +01:00

fixed possible "UnboundLocalError". Thanks to judas_iscariote for spotting this issue!

This commit is contained in:
Marcus Hüwe 2007-08-08 19:48:38 +00:00
parent 003c3dad5b
commit d75d98da50

View File

@ -868,6 +868,7 @@ class Osc(cmdln.Cmdln):
conf.config['do_commits'] = True
for p in pacs:
msg = ''
if conf.config['do_commits']:
if opts.message:
msg = opts.message
@ -876,8 +877,6 @@ class Osc(cmdln.Cmdln):
msg = open(opts.file).read()
except:
sys.exit('could not open file \'%s\'.' % opts.file)
else:
msg = ''
p.commit(msg)