mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-25 11:42:12 +01:00
fixed possible "UnboundLocalError". Thanks to judas_iscariote for spotting this issue!
This commit is contained in:
parent
003c3dad5b
commit
d75d98da50
@ -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)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user