summaryrefslogtreecommitdiff
path: root/build/parseSpec.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-09-01 14:00:54 +0300
committerPanu Matilainen <pmatilai@redhat.com>2010-09-01 14:00:54 +0300
commit4acb8866ef8b232b736b84a68b2701070439a6f4 (patch)
treed71688c0e5f96258d89c8690a0eae1bbda37137a /build/parseSpec.c
parent628de71cdebf8ed8cb1574b39de6fe0150dd65fb (diff)
downloadlibrpm-tizen-4acb8866ef8b232b736b84a68b2701070439a6f4.tar.gz
librpm-tizen-4acb8866ef8b232b736b84a68b2701070439a6f4.tar.bz2
librpm-tizen-4acb8866ef8b232b736b84a68b2701070439a6f4.zip
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
Diffstat (limited to 'build/parseSpec.c')
-rw-r--r--build/parseSpec.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/build/parseSpec.c b/build/parseSpec.c
index 38ba5e206..9e2b0ef45 100644
--- a/build/parseSpec.c
+++ b/build/parseSpec.c
@@ -546,8 +546,6 @@ int parseSpec(rpmts ts, const char *specFile, const char *rootDir,
if (rootDir)
spec->rootDir = xstrdup(rootDir);
- if (cookie)
- spec->cookie = xstrdup(cookie);
spec->timeCheck = rpmExpandNumeric("%{_timecheck}");
@@ -635,7 +633,7 @@ int parseSpec(rpmts ts, const char *specFile, const char *rootDir,
addMacro(NULL, "_target_cpu", NULL, spec->BANames[x], RMIL_RPMRC);
spec->BASpecs[index] = NULL;
if (parseSpec(ts, specFile, spec->rootDir, buildRoot, 1,
- NULL, cookie, anyarch, force)
+ NULL, NULL, anyarch, force)
|| (spec->BASpecs[index] = rpmtsSetSpec(ts, NULL)) == NULL)
{
spec->BACount = index;