Mailinglist Archive: opensuse-buildservice (327 mails)

< Previous Next >
Re: [opensuse-buildservice] RFC: [PATCH] --offline skips the GPG verification too
  • From: Adrian Schröter <adrian@xxxxxxx>
  • Date: Thu, 07 Apr 2011 10:14:35 +0200
  • Message-id: <1629793.14lbN5Fqnl@scherben>
Am Donnerstag, 7. April 2011, 10:10:24 schrieb Michal Vyskocil:

now as we are in funny times with BuildService and iChain, I use a
--offline option a lot. But without --no-verify it does not make a
sense, because GPG verification needs API. The --offline implies me API
won't be queried, so I've made this small patch, which skips the GPG
verification as well.

Hm, I am unsure if --offline should automatic imply --no-verify,
since you may have evil/unwanted rpms in your local cache from a former
build attempt.

It may be okay, if you did accept that in a former build, so if you
remove the buildconfig, if the user did not accept these rpms in former
online build.
In that way the offline build would not be possible anyway.

Any comments?

Michal Vyskocil

The --offline arguments implies API will not be touched, so this will
skip the GPG verification as well.
osc/ | 2 +-
osc/ | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/osc/ b/osc/
index 66d74ef..635d102 100644
--- a/osc/
+++ b/osc/
@@ -761,7 +761,7 @@ def main(apiurl, opts, argv):
os.symlink(sffn, tffn)

if bi.pacsuffix == 'rpm':
- if opts.no_verify:
+ if opts.no_verify or opts.offline:
print 'Skipping verification of package signatures'
print 'Verifying integrity of cached packages'
diff --git a/osc/ b/osc/
index ff85f72..50666db 100644
--- a/osc/
+++ b/osc/
@@ -4471,7 +4471,7 @@ Please submit there instead, or use --nodevelproject to
force direct submission.
@cmdln.option('--clean', action='store_true',
help='Delete old build root before initializing it')
@cmdln.option('-o', '--offline', action='store_true',
- help='Start with cached prjconf and packages without
contacting the api server')
+ help='Start with cached prjconf and packages without
contacting the api server and skip
GPG verification')
@cmdln.option('-l', '--preload', action='store_true',
help='Preload all files into the chache for offline
@cmdln.option('--no-changelog', action='store_true',

Adrian Schroeter
SUSE Linux Products GmbH
email: adrian@xxxxxxx

To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups