summaryrefslogtreecommitdiff
path: root/build.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2002-07-28 14:52:33 +0000
committerjbj <devnull@localhost>2002-07-28 14:52:33 +0000
commit5a1ebaccd57b157b70bcd1277f66c5d97e94edf1 (patch)
tree31abb845ee897f1d15c344737376ec8c38e2c00e /build.c
parent670ab1c845c0f5f9d252b4599186b4934d20c4b7 (diff)
downloadlibrpm-tizen-5a1ebaccd57b157b70bcd1277f66c5d97e94edf1.tar.gz
librpm-tizen-5a1ebaccd57b157b70bcd1277f66c5d97e94edf1.tar.bz2
librpm-tizen-5a1ebaccd57b157b70bcd1277f66c5d97e94edf1.zip
- python: don't segfault in ts.GetKeys() on erased packages.
resurrect build modes. add undocumented debugging options. CVS patchset: 5577 CVS date: 2002/07/28 14:52:33
Diffstat (limited to 'build.c')
-rw-r--r--build.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/build.c b/build.c
index 42659088e..10a8e7cfa 100644
--- a/build.c
+++ b/build.c
@@ -298,6 +298,17 @@ int build(rpmts ts, const char * arg, BTA_t ba, const char * rcfile)
char * targets = ba->targets;
#define buildCleanMask (RPMBUILD_RMSOURCE|RPMBUILD_RMSPEC)
int cleanFlags = ba->buildAmount & buildCleanMask;
+ int vsflags, ovsflags;
+
+ vsflags = rpmExpandNumeric("%{_vsflags_build}");
+ if (ba->qva_flags & VERIFY_DIGEST)
+ vsflags |= _RPMTS_VSF_NODIGESTS;
+ if (ba->qva_flags & VERIFY_SIGNATURE)
+ vsflags |= _RPMTS_VSF_NOSIGNATURES;
+ if (ba->qva_flags & VERIFY_HDRCHK)
+ vsflags |= _RPMTS_VSF_NOHDRCHK;
+fprintf(stderr, "*** vsflags 0x%x qva_flags 0x%x\n", vsflags, ba->qva_flags);
+ ovsflags = rpmtsSetVerifySigFlags(ts, vsflags);
if (targets == NULL) {
rc = buildForTarget(ts, arg, ba);
@@ -332,6 +343,7 @@ int build(rpmts ts, const char * arg, BTA_t ba, const char * rcfile)
}
exit:
+ vsflags = rpmtsSetVerifySigFlags(ts, ovsflags);
/* Restore original configuration. */
rpmFreeMacros(NULL);
(void) rpmReadConfigFiles(rcfile, NULL);