summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAron Griffis <agriffis@gentoo.org>2010-10-06 10:55:09 +0300
committerPanu Matilainen <pmatilai@redhat.com>2010-10-06 10:55:09 +0300
commit4846346c18067ab667d9c53113c7b3fe46be313f (patch)
treecb83e1b2eb14de4560a81fb4d8744f876406904f
parent8a9e1e34daa2524b8fb59041abcce615ae045d0e (diff)
downloadlibrpm-tizen-4846346c18067ab667d9c53113c7b3fe46be313f.tar.gz
librpm-tizen-4846346c18067ab667d9c53113c7b3fe46be313f.tar.bz2
librpm-tizen-4846346c18067ab667d9c53113c7b3fe46be313f.zip
Use the right variable for absolute path (ticket #137)
- Fix the problem where rpm attempts to use the tarball as the specfile
-rw-r--r--rpmbuild.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmbuild.c b/rpmbuild.c
index ad62a13e5..856798a7c 100644
--- a/rpmbuild.c
+++ b/rpmbuild.c
@@ -406,7 +406,7 @@ static int buildForTarget(rpmts ts, const char * arg, BTA_t ba)
if (*specFile != '/') {
char *cwd = rpmGetCwd();
char *s = NULL;
- rasprintf(&s, "%s/%s", cwd, arg);
+ rasprintf(&s, "%s/%s", cwd, specFile);
free(cwd);
free(specFile);
specFile = s;