mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-26 22:56:15 +01:00
- osc build: add --no-verify, to skip the package signature verification step
This commit is contained in:
parent
0e9e76ea68
commit
63e4d8da3c
@ -322,8 +322,11 @@ def main(opts, argv):
|
||||
anyway, I assume... verifying package now saves time though, since we don't
|
||||
even try to set up the buildroot if it wouldn't work."""
|
||||
|
||||
print 'Verifying integrity of cached packages'
|
||||
verify_pacs([ i.fullfilename for i in bi.deps ])
|
||||
if opts.no_verify:
|
||||
print 'Skipping verification of package signatures'
|
||||
else:
|
||||
print 'Verifying integrity of cached packages'
|
||||
verify_pacs([ i.fullfilename for i in bi.deps ])
|
||||
|
||||
print 'Writing build configuration'
|
||||
|
||||
|
@ -1318,6 +1318,8 @@ class Osc(cmdln.Cmdln):
|
||||
help='don\'t update the package changelog from a changes file')
|
||||
@cmdln.option('--noinit', '--no-init', action='store_true',
|
||||
help='Skip initialization of build root and start with build immediately.')
|
||||
@cmdln.option('--no-verify', action='store_true',
|
||||
help='Skip signature verification of packages used for build.')
|
||||
@cmdln.option('-p', '--prefer-pkgs', metavar='DIR', action='append',
|
||||
help='Prefer packages from this directory when installing the build-root')
|
||||
@cmdln.option('-k', '--keep-pkgs', metavar='DIR',
|
||||
|
@ -179,6 +179,8 @@ def verify_pacs(pac_list):
|
||||
rpm --import %(dir)s/keyfile-%(name)s
|
||||
|
||||
Then, just start the build again.
|
||||
|
||||
- If the key is unavailable, you may use --no-verify (which may pose a risk).
|
||||
""" % {'name': missing_key,
|
||||
'dir': os.path.expanduser('~')}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user