1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-14 17:46:17 +01:00

- use correct apiurl when calling meta_exists()

This commit is contained in:
Marcus Hüwe 2009-09-12 23:58:56 +00:00
parent 6ff386b710
commit fbd1fca228

View File

@ -378,9 +378,9 @@ def main(opts, argv):
if e.code == 404:
# check what caused the 404
if meta_exists(metatype='prj', path_args=(quote_plus(prj), ),
template_args=None, create_new=False):
template_args=None, create_new=False, apiurl=apiurl):
if pac == '_repository' or meta_exists(metatype='pkg', path_args=(quote_plus(prj), quote_plus(pac)),
template_args=None, create_new=False):
template_args=None, create_new=False, apiurl=apiurl):
print >>sys.stderr, 'wrong repo/arch?'
sys.exit(1)
else: