mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-24 00:56:15 +01:00
- allow diffing of maintenance requests
This commit is contained in:
parent
e052839027
commit
caef99c3d9
@ -2236,8 +2236,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
except HTTPError as e:
|
||||
# for OBS 2.0 and before
|
||||
sr_actions = r.get_actions('submit')
|
||||
if not sr_actions:
|
||||
raise oscerr.WrongOptions('\'--diff\' not possible (request has no \'submit\' actions)')
|
||||
if not r.get_actions('submit') and not r.get_actions('maintenance_incident') and not r.get_actions('maintenance_release'):
|
||||
raise oscerr.WrongOptions('\'--diff\' not possible (request has no supported actions)')
|
||||
for action in sr_actions:
|
||||
diff += 'old: %s/%s\nnew: %s/%s\n' % (action.src_project, action.src_package,
|
||||
action.tgt_project, action.tgt_package)
|
||||
|
@ -407,7 +407,7 @@ class Serviceinfo:
|
||||
raise oscerr.PackageNotInstalled("obs-service-%s"%cmd[0])
|
||||
cmd[0] = "/usr/lib/obs/service/"+cmd[0]
|
||||
cmd = cmd + [ "--outdir", temp_dir ]
|
||||
if conf.config['verbose'] > 1 or verbose:
|
||||
if conf.config['verbose'] > 1 or verbose or conf.config['debug']:
|
||||
print("Run source service:", ' '.join(cmd))
|
||||
r = run_external(*cmd)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user