mirror of
https://github.com/openSUSE/osc.git
synced 2025-08-29 01:14:13 +02:00
submitreq show: if the target package doesn't exist, a diff cannot be produced.
This commit is contained in:
@@ -453,9 +453,12 @@ class Osc(cmdln.Cmdln):
|
|||||||
print r
|
print r
|
||||||
# fixme: will inevitably fail if the given target doesn't exist
|
# fixme: will inevitably fail if the given target doesn't exist
|
||||||
if opts.diff:
|
if opts.diff:
|
||||||
print pretty_diff(conf.config['apiurl'],
|
try:
|
||||||
r.src_project, r.src_package, r.src_md5,
|
print pretty_diff(conf.config['apiurl'],
|
||||||
r.dst_project, r.dst_package, None)
|
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
|
# decline
|
||||||
|
Reference in New Issue
Block a user