files with the same md5 shouldn't cause conflicts
authorroot <devnull@localhost>
Fri, 23 Feb 1996 16:21:06 +0000 (16:21 +0000)
committerroot <devnull@localhost>
Fri, 23 Feb 1996 16:21:06 +0000 (16:21 +0000)
CVS patchset: 410
CVS date: 1996/02/23 16:21:06

lib/install.c

index acf9353..f138f29 100644 (file)
@@ -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;