summaryrefslogtreecommitdiff
path: root/build.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2002-08-06 01:41:44 +0000
committerjbj <devnull@localhost>2002-08-06 01:41:44 +0000
commit035cf961d56c884708902652175070de31e45a57 (patch)
treeec96dd1cb0965680636c0fe38b0d580537bb0a1a /build.c
parent5211039a20762b4a50c006ccf79666bff34967c2 (diff)
downloadlibrpm-tizen-035cf961d56c884708902652175070de31e45a57.tar.gz
librpm-tizen-035cf961d56c884708902652175070de31e45a57.tar.bz2
librpm-tizen-035cf961d56c884708902652175070de31e45a57.zip
- add bitmask for precise control of signature/digest verification.
CVS patchset: 5604 CVS date: 2002/08/06 01:41:44
Diffstat (limited to 'build.c')
-rw-r--r--build.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/build.c b/build.c
index 0ca0f36b2..43df5763d 100644
--- a/build.c
+++ b/build.c
@@ -298,16 +298,16 @@ 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;
+ rpmVSFlags vsflags, ovsflags;
vsflags = rpmExpandNumeric("%{_vsflags_build}");
if (ba->qva_flags & VERIFY_DIGEST)
- vsflags |= _RPMTS_VSF_NODIGESTS;
+ vsflags |= _RPMVSF_NODIGESTS;
if (ba->qva_flags & VERIFY_SIGNATURE)
- vsflags |= _RPMTS_VSF_NOSIGNATURES;
+ vsflags |= _RPMVSF_NOSIGNATURES;
if (ba->qva_flags & VERIFY_HDRCHK)
- vsflags |= _RPMTS_VSF_NOHDRCHK;
- ovsflags = rpmtsSetVerifySigFlags(ts, vsflags);
+ vsflags |= RPMVSF_NOHDRCHK;
+ ovsflags = rpmtsSetVSFlags(ts, vsflags);
if (targets == NULL) {
rc = buildForTarget(ts, arg, ba);
@@ -342,7 +342,7 @@ int build(rpmts ts, const char * arg, BTA_t ba, const char * rcfile)
}
exit:
- vsflags = rpmtsSetVerifySigFlags(ts, ovsflags);
+ vsflags = rpmtsSetVSFlags(ts, ovsflags);
/* Restore original configuration. */
rpmFreeMacros(NULL);
(void) rpmReadConfigFiles(rcfile, NULL);