diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2012-09-14 00:10:45 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2012-09-14 13:36:42 +0300 |
commit | 5d89aac5d2f271267c642a64e631263dbdfdeacf (patch) | |
tree | a8d272e4b4070f9af992c9cb2b5d1b6bbfb0997d /lib/fprint.c | |
parent | ae38f0a977ded4da48b71caac6f796505ef5456a (diff) | |
download | librpm-tizen-5d89aac5d2f271267c642a64e631263dbdfdeacf.tar.gz librpm-tizen-5d89aac5d2f271267c642a64e631263dbdfdeacf.tar.bz2 librpm-tizen-5d89aac5d2f271267c642a64e631263dbdfdeacf.zip |
Add internal API for fingerprint lookup-and-compare
- Replace the direct hackery in rpmdb internals with a little less
direct hackery...
Diffstat (limited to 'lib/fprint.c')
-rw-r--r-- | lib/fprint.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/fprint.c b/lib/fprint.c index e4566a842..037fc6a99 100644 --- a/lib/fprint.c +++ b/lib/fprint.c @@ -241,6 +241,14 @@ int fpEqual(const fingerPrint * k1, const fingerPrint * k2) } +int fpLookupEquals(fingerPrintCache cache, fingerPrint *fp, + const char * dirName, const char * baseName) +{ + struct fingerPrint_s ofp; + fpLookup(cache, dirName, baseName, 1, &ofp); + return FP_EQUAL(*fp, ofp); +} + void fpLookupList(fingerPrintCache cache, rpmstrPool pool, rpmsid * dirNames, rpmsid * baseNames, const uint32_t * dirIndexes, |