mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-23 05:26:16 +01:00
- do_getbinaries: fail if repo doesn't exist
This commit is contained in:
parent
e721bb5ab6
commit
ba1fe8ab80
@ -4961,8 +4961,6 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
project = None
|
project = None
|
||||||
|
|
||||||
if len(args) < 1 and is_package_dir('.'):
|
if len(args) < 1 and is_package_dir('.'):
|
||||||
project = store_read_project(os.curdir)
|
|
||||||
package = store_read_package(os.curdir)
|
|
||||||
self.print_repos()
|
self.print_repos()
|
||||||
|
|
||||||
architecture = None
|
architecture = None
|
||||||
@ -4986,10 +4984,14 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
else:
|
else:
|
||||||
raise oscerr.WrongArgs('Need either 1, 2 or 4 arguments')
|
raise oscerr.WrongArgs('Need either 1, 2 or 4 arguments')
|
||||||
|
|
||||||
# Get package list
|
repos = list(get_repos_of_project(apiurl, project))
|
||||||
|
if not [i for i in repos if repository == i.name]:
|
||||||
|
print >>sys.stderr, 'Invalid repository \'%s\'' % repository
|
||||||
|
self.print_repos()
|
||||||
|
|
||||||
arches = [architecture]
|
arches = [architecture]
|
||||||
if architecture is None:
|
if architecture is None:
|
||||||
arches = [i.arch for i in get_repos_of_project(apiurl, project) if repository == i.name]
|
arches = [i.arch for i in repos if repository == i.name]
|
||||||
|
|
||||||
if package is None:
|
if package is None:
|
||||||
package = meta_get_packagelist(apiurl, project)
|
package = meta_get_packagelist(apiurl, project)
|
||||||
|
Loading…
Reference in New Issue
Block a user