summaryrefslogtreecommitdiff
path: root/build/parsePrep.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-12-22 15:32:17 +0200
committerPanu Matilainen <pmatilai@redhat.com>2009-12-22 15:32:17 +0200
commit4d328c0b6982a5782bdd9dc4722ccc5119279b57 (patch)
tree8f4e4b60a935148faa4908bc292d94201fad2a87 /build/parsePrep.c
parent67601222815391e7739fa8592d0d0de57f5fb316 (diff)
downloadrpm-4d328c0b6982a5782bdd9dc4722ccc5119279b57.tar.gz
rpm-4d328c0b6982a5782bdd9dc4722ccc5119279b57.tar.bz2
rpm-4d328c0b6982a5782bdd9dc4722ccc5119279b57.zip
Use %{__mkdir_p} macro in build instead of hardwired RPM_MKDIR_P
Diffstat (limited to 'build/parsePrep.c')
-rw-r--r--build/parsePrep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/parsePrep.c b/build/parsePrep.c
index 729bbca1b..670ed709d 100644
--- a/build/parsePrep.c
+++ b/build/parsePrep.c
@@ -326,8 +326,8 @@ static int doSetupMacro(rpmSpec spec, const char *line)
/* if necessary, create and cd into the proper dir */
if (createDir) {
- rasprintf(&buf, RPM_MKDIR_P " %s\ncd '%s'",
- spec->buildSubdir, spec->buildSubdir);
+ buf = rpmExpand("%{__mkdir_p} ", spec->buildSubdir, "\n",
+ "cd '", spec->buildSubdir, "'", NULL);
appendLineStringBuf(spec->prep, buf);
free(buf);
}