don't back up directories marked as config files, even if they already

exist

CVS patchset: 446
CVS date: 1996/03/01 03:28:33
This commit is contained in:
ewt 1996-03-01 03:28:33 +00:00
parent cd07a9b057
commit 00377d6ae5
1 changed files with 2 additions and 1 deletions

View File

@ -223,7 +223,8 @@ int rpmInstallPackage(char * prefix, rpmdb db, int fd, int flags,
prefixedFileList[i] = fileList[i];
instActions[i] = CREATE;
if (fileFlagsList[i] & RPMFILE_CONFIG) {
if ((fileFlagsList[i] & RPMFILE_CONFIG) &&
!S_ISDIR(fileModesList[i])) {
if (exists(prefixedFileList[i])) {
message(MESS_DEBUG, "%s exists - backing up\n",
prefixedFileList[i]);