mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-13 17:16:23 +01:00
* use correct api url in checked out packages on setlinkrev command.
* make error message better matching reality
This commit is contained in:
parent
16f99519ed
commit
e6815fc177
@ -720,7 +720,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
package = p.name
|
||||
apiurl = p.apiurl
|
||||
if not p.islink():
|
||||
sys.exit('Local directory is no checked out package, aborting')
|
||||
sys.exit('Local directory is no checked out source link package, aborting')
|
||||
elif len(args) == 2:
|
||||
project = args[0]
|
||||
package = args[1]
|
||||
|
@ -3188,7 +3188,7 @@ def search(apiurl, search_list, kind, search_term, verbose = False, exact_matche
|
||||
|
||||
|
||||
def set_link_rev(apiurl, project, package, revision = None):
|
||||
url = makeurl(conf.config['apiurl'], ['source', project, package, '_link'])
|
||||
url = makeurl(apiurl, ['source', project, package, '_link'])
|
||||
try:
|
||||
f = http_GET(url)
|
||||
root = ET.parse(f).getroot()
|
||||
|
Loading…
Reference in New Issue
Block a user