ignore config bit for direcrroies
authorewt <devnull@localhost>
Tue, 15 Apr 1997 14:42:12 +0000 (14:42 +0000)
committerewt <devnull@localhost>
Tue, 15 Apr 1997 14:42:12 +0000 (14:42 +0000)
CVS patchset: 1540
CVS date: 1997/04/15 14:42:12

lib/install.c

index b3123d7..e1cc002 100644 (file)
@@ -1091,6 +1091,11 @@ static enum instActions decideFileFate(char * filespec, short dbMode,
     dbWhat = whatis(dbMode);
     newWhat = whatis(newMode);
 
+    /* RPM >= 2.3.10 shouldn't create config directories -- we'll ignore
+       them in older packages as well */
+    if (newWhat == XDIR)
+       return CREATE;
+
     if (diskWhat != newWhat) {
        rpmMessage(RPMMESS_DEBUG, "     file type on disk is different then package - "
                        "saving\n");