1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 09:16:16 +02:00

* use correct api url in checked out packages on setlinkrev command.

* make error message better matching reality
This commit is contained in:
Adrian Schröter 2009-04-16 08:13:55 +00:00
parent 16f99519ed
commit e6815fc177
2 changed files with 2 additions and 2 deletions

View File

@ -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]

View File

@ -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()