diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-03-18 14:53:34 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-03-18 14:53:34 +0200 |
commit | 54b027535f95fea9088f2cd12ed765fddb20c5c1 (patch) | |
tree | c9374e7e00599eac150798d40d975b554c266ddb /build/parsePrep.c | |
parent | b187977fee788888007409465c7efa644d20ddef (diff) | |
download | rpm-54b027535f95fea9088f2cd12ed765fddb20c5c1.tar.gz rpm-54b027535f95fea9088f2cd12ed765fddb20c5c1.tar.bz2 rpm-54b027535f95fea9088f2cd12ed765fddb20c5c1.zip |
Don't try to parse %patch on spec query (rhbz#487855)
Diffstat (limited to 'build/parsePrep.c')
-rw-r--r-- | build/parsePrep.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/build/parsePrep.c b/build/parsePrep.c index 9a919bd8b..e67690822 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; } |