summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-12-02 13:22:11 +0200
committerPanu Matilainen <pmatilai@redhat.com>2009-12-02 13:35:53 +0200
commit1adb46a9f864a327c93496ee0f8a149bd1def175 (patch)
tree326d699da034b436c9764cf8264fe31c8b3308da /build
parent480095ab2a319d29965ced868ecc8253b1ba7420 (diff)
downloadrpm-1adb46a9f864a327c93496ee0f8a149bd1def175.tar.gz
rpm-1adb46a9f864a327c93496ee0f8a149bd1def175.tar.bz2
rpm-1adb46a9f864a327c93496ee0f8a149bd1def175.zip
Back out overly strict file type check on %ghost files
- we currently only support creating regular files for %ghosts which dont exist in the buildroot, but for files that do exist in the buildroot there's no reason to place such limits (eg its perfectly ok to have symlinks marked as %ghosts)
Diffstat (limited to 'build')
-rw-r--r--build/files.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/build/files.c b/build/files.c
index 061494d99..7db729a3f 100644
--- a/build/files.c
+++ b/build/files.c
@@ -1414,12 +1414,6 @@ static rpmRC addFile(FileList fl, const char * diskPath,
fl->processingFailed = 1;
return RPMRC_FAIL;
}
- } else {
- if (is_ghost && !S_ISREG(statp->st_mode)) {
- rpmlog(RPMLOG_ERR, _("Only regular file can be %%ghost: %s\n"), diskPath);
- fl->processingFailed = 1;
- return RPMRC_FAIL;
- }
}
}
}