From 4acb8866ef8b232b736b84a68b2701070439a6f4 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Wed, 1 Sep 2010 14:00:54 +0300 Subject: Eliminate cookie from spec structure - Cookies are not a property of spec but a given build, handle this internally to buildSpec() except for --rebuild which passes the srpm identifier cookie through buildArgs --- rpmbuild.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'rpmbuild.c') diff --git a/rpmbuild.c b/rpmbuild.c index cd9db7c65..ee130bd93 100644 --- a/rpmbuild.c +++ b/rpmbuild.c @@ -196,7 +196,6 @@ exit: static int buildForTarget(rpmts ts, const char * arg, BTA_t ba) { - const char * cookie = ba->cookie; int buildAmount = ba->buildAmount; char * buildRootURL = NULL; char * specFile = NULL; @@ -276,7 +275,7 @@ static int buildForTarget(rpmts ts, const char * arg, BTA_t ba) #define _anyarch(_f) \ (((_f)&(RPMBUILD_PREP|RPMBUILD_BUILD|RPMBUILD_INSTALL|RPMBUILD_PACKAGEBINARY)) == 0) if (parseSpec(ts, specFile, ba->rootdir, buildRootURL, 0, NULL, - cookie, _anyarch(buildAmount), ba->force)) + NULL, _anyarch(buildAmount), ba->force)) { goto exit; } -- cgit v1.2.3