mirror of
https://github.com/openSUSE/osc.git
synced 2025-08-31 02:14:10 +02:00
Merge branch 'ccache' of https://github.com/sjamgade/osc
Add "--ccache" option to "osc getbinaries".
This commit is contained in:
@@ -7250,6 +7250,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
help='also fetch source packages')
|
||||
@cmdln.option('--debug', action="store_true",
|
||||
help='also fetch debug packages')
|
||||
@cmdln.option('--ccache', action="store_true",
|
||||
help='allow fetching ccache archive')
|
||||
def do_getbinaries(self, subcmd, opts, *args):
|
||||
"""${cmd_name}: Download binaries to a local directory
|
||||
|
||||
@@ -7330,7 +7332,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
for arch in arches:
|
||||
for pac in package:
|
||||
binaries = get_binarylist(apiurl, project, repository, arch,
|
||||
package=pac, verbose=True)
|
||||
package=pac, verbose=True, withccache=opts.ccache)
|
||||
if not binaries:
|
||||
print('no binaries found: Either the package %s ' \
|
||||
'does not exist or no binaries have been built.' % pac, file=sys.stderr)
|
||||
|
Reference in New Issue
Block a user