mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 06:46:15 +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
|
package = p.name
|
||||||
apiurl = p.apiurl
|
apiurl = p.apiurl
|
||||||
if not p.islink():
|
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:
|
elif len(args) == 2:
|
||||||
project = args[0]
|
project = args[0]
|
||||||
package = args[1]
|
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):
|
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:
|
try:
|
||||||
f = http_GET(url)
|
f = http_GET(url)
|
||||||
root = ET.parse(f).getroot()
|
root = ET.parse(f).getroot()
|
||||||
|
Loading…
Reference in New Issue
Block a user