From 42a026ec2211e91b12e6391f903d5b83e2f9f8cf Mon Sep 17 00:00:00 2001 From: root Date: Fri, 23 Feb 1996 16:21:06 +0000 Subject: [PATCH] files with the same md5 shouldn't cause conflicts CVS patchset: 410 CVS date: 1996/02/23 16:21:06 --- lib/install.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/install.c b/lib/install.c index acf9353..f138f29 100644 --- a/lib/install.c +++ b/lib/install.c @@ -873,6 +873,12 @@ static int instHandleSharedFiles(rpmdb db, int ignoreOffset, char ** fileList, message(MESS_DEBUG, "file %s is shared\n", secFileList[sharedList[i].secFileNumber]); + if (!strcmp(secFileMd5List[sharedList[i].secFileNumber], + fileMd5List[sharedList[i].mainFileNumber])) { + message(MESS_DEBUG, "shared file and new file are identical\n"); + continue; + } + intptr = notErrors; while (*intptr) { if (*intptr == sharedList[i].secRecOffset) break; -- 2.7.4