summaryrefslogtreecommitdiff
path: root/build/parseSpec.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-08-25 13:33:15 +0300
committerPanu Matilainen <pmatilai@redhat.com>2010-08-25 13:33:15 +0300
commitaafd1d217d46848f1e19c9527e9e9f98bb30bda8 (patch)
treee51b93efba7d06362cf0dad9eec87568476945ec /build/parseSpec.c
parentb6eb24ebc12921abca74ebe007f4d31276c0cc38 (diff)
downloadlibrpm-tizen-aafd1d217d46848f1e19c9527e9e9f98bb30bda8.tar.gz
librpm-tizen-aafd1d217d46848f1e19c9527e9e9f98bb30bda8.tar.bz2
librpm-tizen-aafd1d217d46848f1e19c9527e9e9f98bb30bda8.zip
Initialize source header from parseSpec() instead of caller(s)
- This is where it logically seems to belong to, after all parseSpec() similarly populates all other metadata of the binaries etc too. No point requiring callers to do this obscure extra call.
Diffstat (limited to 'build/parseSpec.c')
-rw-r--r--build/parseSpec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/build/parseSpec.c b/build/parseSpec.c
index 48f3ecbd3..95549e6ce 100644
--- a/build/parseSpec.c
+++ b/build/parseSpec.c
@@ -607,6 +607,8 @@ int parseSpec(rpmts ts, const char *specFile, const char *rootDir,
closeSpec(spec);
exit:
+ /* Assemble source header from parsed components */
+ initSourceHeader(spec);
(void) rpmtsSetSpec(ts, spec);
return 0;