From 54b027535f95fea9088f2cd12ed765fddb20c5c1 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Wed, 18 Mar 2009 14:53:34 +0200 Subject: [PATCH] Don't try to parse %patch on spec query (rhbz#487855) --- build/parsePrep.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/build/parsePrep.c b/build/parsePrep.c index 9a919bd..e676908 100644 --- a/build/parsePrep.c +++ b/build/parsePrep.c @@ -73,11 +73,8 @@ static char *doPatch(rpmSpec spec, uint32_t c, int strip, const char *db, fn = rpmGetPath("%{_sourcedir}/", sp->source, NULL); - /* - * FIXME: On non-build parse's, file cannot be stat'd or read but - * %{uncompress} doesn't know that so we get errors on non-existent files. - */ - if (!spec->force && checkOwners(fn)) { + /* On non-build parse's, file cannot be stat'd or read. */ + if (spec->force || checkOwners(fn)) { fn = _free(fn); return NULL; } -- 2.7.4