summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2011-03-24 18:54:28 -0400
committerColin Walters <walters@verbum.org>2011-03-26 10:18:26 -0400
commit03d831e9bcb0011b3402da46f06f2ab3b2f59542 (patch)
tree97f83d6628adfbbba05c3b1f04fa8e0c204f8bcb
parenta7a1cd88940b530c8b599466533d09da47ea4d4b (diff)
downloadhomegit-MOVED-TO-GNOME-03d831e9bcb0011b3402da46f06f2ab3b2f59542.zip
homegit-MOVED-TO-GNOME-03d831e9bcb0011b3402da46f06f2ab3b2f59542.tar.gz
homegit-MOVED-TO-GNOME-03d831e9bcb0011b3402da46f06f2ab3b2f59542.tar.xz
rpmbuild-cwd: Be defensive against . changing
These directories should always be absolute.
-rwxr-xr-xbin/rpmbuild-cwd3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/rpmbuild-cwd b/bin/rpmbuild-cwd
index 156e099..d0805bb 100755
--- a/bin/rpmbuild-cwd
+++ b/bin/rpmbuild-cwd
@@ -7,4 +7,5 @@
# Copyright (C) 2010 Red Hat, Inc.
# Written by Colin Walters <walters@verbum.org>
-exec rpmbuild --define '_sourcedir .' --define '_specdir .' --define '_builddir .' --define '_srcrpmdir .' --define '_rpmdir .' "$@"
+pwd=$(pwd)
+exec rpmbuild --define "_sourcedir ${pwd}" --define "_specdir ${pwd}" --define "_builddir ${pwd}" --define "_srcrpmdir ${pwd}" --define "_rpmdir ${pwd}" --define "_buildrootdir ${pwd}/.build" "$@"