1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 22:56:15 +01:00

Support downloading a project's binaries from a non-checkout directory.

This commit is contained in:
Hemmo Nieminen 2016-10-07 15:13:46 +03:00
parent 2befb71663
commit f7918fcc10

View File

@ -6654,6 +6654,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
usage: usage:
osc getbinaries REPOSITORY # works in checked out project/package (check out all archs in subdirs) osc getbinaries REPOSITORY # works in checked out project/package (check out all archs in subdirs)
osc getbinaries REPOSITORY ARCHITECTURE # works in checked out project/package osc getbinaries REPOSITORY ARCHITECTURE # works in checked out project/package
osc getbinaries PROJECT REPOSITORY ARCHITECTRUE
osc getbinaries PROJECT PACKAGE REPOSITORY ARCHITECTURE osc getbinaries PROJECT PACKAGE REPOSITORY ARCHITECTURE
osc getbinaries PROJECT PACKAGE REPOSITORY ARCHITECTURE FILE osc getbinaries PROJECT PACKAGE REPOSITORY ARCHITECTURE FILE
${cmd_option_list} ${cmd_option_list}
@ -6677,6 +6678,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
architecture = args[3] architecture = args[3]
if len(args) == 5: if len(args) == 5:
binary = args[4] binary = args[4]
elif len(args) == 3:
project, repository, architecture = args
elif len(args) >= 1 and len(args) <= 2: elif len(args) >= 1 and len(args) <= 2:
if is_package_dir(os.getcwd()): if is_package_dir(os.getcwd()):
project = store_read_project(os.curdir) project = store_read_project(os.curdir)