1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-27 18:26:15 +01:00

- fixed bug #259711 (do not create dirs for non-existing packages during checkout)

This commit is contained in:
Marcus Hüwe 2007-10-27 20:19:12 +00:00
parent 42e128687d
commit db692ce10e

View File

@ -1361,6 +1361,11 @@ def make_dir(apiurl, project, package):
def checkout_package(apiurl, project, package, revision=None):
olddir = os.getcwd()
path = (quote_plus(project), quote_plus(package))
if meta_exists(metatype='pkg', path_args=path, create_new=False) == None:
print >>sys.stderr, 'error 404 - package or package does not exist'
sys.exit(1)
os.chdir(make_dir(apiurl, project, package))
init_package_dir(apiurl, project, package, store, revision)
p = Package(os.curdir)