From: root Date: Fri, 23 Feb 1996 16:21:06 +0000 (+0000) Subject: files with the same md5 shouldn't cause conflicts X-Git-Tag: rpm-4.4-release~5325 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=42a026ec2211e91b12e6391f903d5b83e2f9f8cf;p=platform%2Fupstream%2Frpm.git files with the same md5 shouldn't cause conflicts CVS patchset: 410 CVS date: 1996/02/23 16:21:06 --- 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;