summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-01-25 12:01:16 +0200
committerPanu Matilainen <pmatilai@redhat.com>2008-01-25 12:01:16 +0200
commitee655d91a2dfd5e8863dca582077d1bd65cb240b (patch)
tree0a7818995911a8d1504179ac556e0d8b5471ea7c /lib
parent86c2aa8cd638be53d35a22b4fc1302be434b8851 (diff)
downloadrpm-ee655d91a2dfd5e8863dca582077d1bd65cb240b.tar.gz
rpm-ee655d91a2dfd5e8863dca582077d1bd65cb240b.tar.bz2
rpm-ee655d91a2dfd5e8863dca582077d1bd65cb240b.zip
Permit conflicting ghost files
Patch from Pascal Rigaux
Diffstat (limited to 'lib')
-rw-r--r--lib/rpmfi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/rpmfi.c b/lib/rpmfi.c
index bb0ccbf08..657d334ba 100644
--- a/lib/rpmfi.c
+++ b/lib/rpmfi.c
@@ -449,6 +449,9 @@ int rpmfiCompare(const rpmfi afi, const rpmfi bfi)
rpmFileTypes awhat = rpmfiWhatis(rpmfiFMode(afi));
rpmFileTypes bwhat = rpmfiWhatis(rpmfiFMode(bfi));
+ if ((rpmfiFFlags(afi) & RPMFILE_GHOST) ||
+ (rpmfiFFlags(bfi) & RPMFILE_GHOST)) return 0;
+
if (awhat != bwhat) return 1;
if (awhat == LINK) {