summaryrefslogtreecommitdiff
path: root/lib/package.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2002-03-12 16:56:17 +0000
committerjbj <devnull@localhost>2002-03-12 16:56:17 +0000
commitd18bbd9bdcfaf031e5ca7b6acd5bcc4d2532d3e4 (patch)
tree935d7f1b209236f6e6876a020d5836eb37afab0c /lib/package.c
parent0a71efcfc06c380feb5558aaf5de6773229894da (diff)
downloadlibrpm-tizen-d18bbd9bdcfaf031e5ca7b6acd5bcc4d2532d3e4.tar.gz
librpm-tizen-d18bbd9bdcfaf031e5ca7b6acd5bcc4d2532d3e4.tar.bz2
librpm-tizen-d18bbd9bdcfaf031e5ca7b6acd5bcc4d2532d3e4.zip
- drill ts/fi through verify mode, add methods to keep fi abstract.
- use mmap when calculating file digests on verify, ~20% faster. CVS patchset: 5352 CVS date: 2002/03/12 16:56:17
Diffstat (limited to 'lib/package.c')
-rw-r--r--lib/package.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/package.c b/lib/package.c
index 6077a0545..80ee22e4a 100644
--- a/lib/package.c
+++ b/lib/package.c
@@ -450,7 +450,7 @@ fprintf(stderr, "*** RPF: legacy %d nodigests %d nosignatures %d sigtag %d\n", t
(void) rpmDigestFinal(ts->dig->md5ctx, NULL, NULL, 0);
/*@=branchstate@*/
#else
-assert(ts->dig->md5ctx != NULL);
+assert(ts->dig->md5ctx == NULL);
#endif
ts->dig->md5ctx = fddig->hashctx;
fddig->hashctx = NULL;
@@ -463,7 +463,7 @@ assert(ts->dig->md5ctx != NULL);
(void) rpmDigestFinal(ts->dig->sha1ctx, NULL, NULL, 0);
/*@=branchstate@*/
#else
-assert(ts->dig->sha1ctx != NULL);
+assert(ts->dig->sha1ctx == NULL);
#endif
ts->dig->sha1ctx = fddig->hashctx;
fddig->hashctx = NULL;