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
|
conf.config['do_commits'] = True
|
||||||
|
|
||||||
for p in pacs:
|
for p in pacs:
|
||||||
|
msg = ''
|
||||||
if conf.config['do_commits']:
|
if conf.config['do_commits']:
|
||||||
if opts.message:
|
if opts.message:
|
||||||
msg = opts.message
|
msg = opts.message
|
||||||
@ -876,8 +877,6 @@ class Osc(cmdln.Cmdln):
|
|||||||
msg = open(opts.file).read()
|
msg = open(opts.file).read()
|
||||||
except:
|
except:
|
||||||
sys.exit('could not open file \'%s\'.' % opts.file)
|
sys.exit('could not open file \'%s\'.' % opts.file)
|
||||||
else:
|
|
||||||
msg = ''
|
|
||||||
p.commit(msg)
|
p.commit(msg)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user