mirror of
https://github.com/openSUSE/osc.git
synced 2025-08-02 13:43:38 +02:00
fixed possible "UnboundLocalError". Thanks to judas_iscariote for spotting this issue!
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user