1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-27 15:06:15 +01:00

- osc build: add --no-verify, to skip the package signature verification step

This commit is contained in:
Dr. Peter Poeml 2008-01-24 18:06:45 +00:00
parent 0e9e76ea68
commit 63e4d8da3c
3 changed files with 9 additions and 2 deletions

View File

@ -322,8 +322,11 @@ def main(opts, argv):
anyway, I assume... verifying package now saves time though, since we don't 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.""" even try to set up the buildroot if it wouldn't work."""
print 'Verifying integrity of cached packages' if opts.no_verify:
verify_pacs([ i.fullfilename for i in bi.deps ]) 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' print 'Writing build configuration'

View File

@ -1318,6 +1318,8 @@ class Osc(cmdln.Cmdln):
help='don\'t update the package changelog from a changes file') help='don\'t update the package changelog from a changes file')
@cmdln.option('--noinit', '--no-init', action='store_true', @cmdln.option('--noinit', '--no-init', action='store_true',
help='Skip initialization of build root and start with build immediately.') 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', @cmdln.option('-p', '--prefer-pkgs', metavar='DIR', action='append',
help='Prefer packages from this directory when installing the build-root') help='Prefer packages from this directory when installing the build-root')
@cmdln.option('-k', '--keep-pkgs', metavar='DIR', @cmdln.option('-k', '--keep-pkgs', metavar='DIR',

View File

@ -179,6 +179,8 @@ def verify_pacs(pac_list):
rpm --import %(dir)s/keyfile-%(name)s rpm --import %(dir)s/keyfile-%(name)s
Then, just start the build again. Then, just start the build again.
- If the key is unavailable, you may use --no-verify (which may pose a risk).
""" % {'name': missing_key, """ % {'name': missing_key,
'dir': os.path.expanduser('~')} 'dir': os.path.expanduser('~')}