From 1adb46a9f864a327c93496ee0f8a149bd1def175 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Wed, 2 Dec 2009 13:22:11 +0200 Subject: [PATCH] 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) --- build/files.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/build/files.c b/build/files.c index 061494d..7db729a 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; - } } } } -- 2.7.4