projects
/
tools
/
librpm-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03e456d
)
Avoid filtering out erase pre-requisites on install
author
Panu Matilainen
<pmatilai@redhat.com>
Mon, 1 Jun 2009 07:39:07 +0000
(10:39 +0300)
committer
Panu Matilainen
<pmatilai@redhat.com>
Mon, 1 Jun 2009 07:39:07 +0000
(10:39 +0300)
- Requires(pre,preun) etc are recorded as a single dependency entry,
so filter out dependencies that are only install pre-requisites
lib/rpmdb.c
patch
|
blob
|
history
diff --git
a/lib/rpmdb.c
b/lib/rpmdb.c
index
6eafe8e
..
439a974
100644
(file)
--- a/
lib/rpmdb.c
+++ b/
lib/rpmdb.c
@@
-2875,7
+2875,8
@@
int rpmdbAdd(rpmdb db, int iid, Header h,
case RPMTAG_REQUIRENAME: {
/* Filter out install prerequisites. */
rpm_flag_t *rflag = rpmtdNextUint32(&reqflags);
- if (rflag && isInstallPreReq(*rflag))
+ if (rflag && isInstallPreReq(*rflag) &&
+ !isErasePreReq(*rflag))
continue;
break;
}