mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-26 09:56:13 +01:00
submitreq show: if the target package doesn't exist, a diff cannot be produced.
This commit is contained in:
parent
c2c406aab2
commit
64f3d8c55e
@ -453,9 +453,12 @@ class Osc(cmdln.Cmdln):
|
||||
print r
|
||||
# fixme: will inevitably fail if the given target doesn't exist
|
||||
if opts.diff:
|
||||
print pretty_diff(conf.config['apiurl'],
|
||||
r.src_project, r.src_package, r.src_md5,
|
||||
r.dst_project, r.dst_package, None)
|
||||
try:
|
||||
print pretty_diff(conf.config['apiurl'],
|
||||
r.src_project, r.src_package, r.src_md5,
|
||||
r.dst_project, r.dst_package, None)
|
||||
except urllib2.HTTPError, e:
|
||||
print >>sys.stderr, 'Diff not possible:', e
|
||||
|
||||
|
||||
# decline
|
||||
|
Loading…
Reference in New Issue
Block a user