summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2001-06-06 12:36:31 +0000
committerjbj <devnull@localhost>2001-06-06 12:36:31 +0000
commitf0a67ca8b05a635340213158e9086b3bdf5443fd (patch)
treef3851640877936a02f4c92571116ddb72ebc8418 /lib
parentc635bbf0aedc73aa138078ffe1c761507de9d91a (diff)
downloadlibrpm-tizen-f0a67ca8b05a635340213158e9086b3bdf5443fd.tar.gz
librpm-tizen-f0a67ca8b05a635340213158e9086b3bdf5443fd.tar.bz2
librpm-tizen-f0a67ca8b05a635340213158e9086b3bdf5443fd.zip
- permit duplicates for btree indices.
CVS patchset: 4843 CVS date: 2001/06/06 12:36:31
Diffstat (limited to 'lib')
-rw-r--r--lib/rpmlib.h5
-rw-r--r--lib/transaction.c5
2 files changed, 4 insertions, 6 deletions
diff --git a/lib/rpmlib.h b/lib/rpmlib.h
index df5062393..627038a51 100644
--- a/lib/rpmlib.h
+++ b/lib/rpmlib.h
@@ -731,6 +731,7 @@ int rpmdbAppendIterator(/*@null@*/ rpmdbMatchIterator mi,
/** \ingroup rpmdb
* Remove items from set of package instances to iterate.
+ * @note Sorted hdrNums are always passed in rpmlib.
* @param mi rpm database iterator
* @param hdrNums array of package instances
* @param nHdrNums number of elements in array
@@ -739,7 +740,7 @@ int rpmdbAppendIterator(/*@null@*/ rpmdbMatchIterator mi,
*/
int rpmdbPruneIterator(/*@null@*/ rpmdbMatchIterator mi,
/*@null@*/ int * hdrNums, int nHdrNums, int sorted)
- /*@modifies mi, *hdrNums @*/;
+ /*@modifies mi, hdrNums @*/;
/** \ingroup rpmdb
* Modify iterator to filter out headers that do not match version.
@@ -763,7 +764,7 @@ void rpmdbSetIteratorRelease(/*@null@*/ rpmdbMatchIterator mi,
/** \ingroup rpmdb
* Prepare iterator for lazy writes.
- * @note: must be called before rpmdbNextIterator() in CDB model database.
+ * @note Must be called before rpmdbNextIterator() in CDB model database.
* @param mi rpm database iterator
* @param rewrite new value of rewrite
* @return previous value
diff --git a/lib/transaction.c b/lib/transaction.c
index 45912e105..9f415a483 100644
--- a/lib/transaction.c
+++ b/lib/transaction.c
@@ -1825,10 +1825,7 @@ int rpmRunTransactions( rpmTransactionSet ts,
shared->isRemoved = (knownBad == ro);
shared++;
}
- if (matches[i]) {
- dbiFreeIndexSet(matches[i]);
- matches[i] = NULL;
- }
+ matches[i] = dbiFreeIndexSet(matches[i]);
}
numShared = shared - sharedList;
shared->otherPkg = -1;