summarylogtreecommitdiffstats
path: root/03.pgo.patch
diff options
context:
space:
mode:
Diffstat (limited to '03.pgo.patch')
-rw-r--r--03.pgo.patch8
1 files changed, 6 insertions, 2 deletions
diff --git a/03.pgo.patch b/03.pgo.patch
index 50e51153986c..30413fe07297 100644
--- a/03.pgo.patch
+++ b/03.pgo.patch
@@ -30,11 +30,15 @@
[[ -n ${SRCPKGDEST} ]] && _SRCPKGDEST=$(canonicalize_path ${SRCPKGDEST})
[[ -n ${LOGDEST} ]] && _LOGDEST=$(canonicalize_path ${LOGDEST})
[[ -n ${BUILDDIR} ]] && _BUILDDIR=$(canonicalize_path ${BUILDDIR})
-@@ -2109,6 +2125,14 @@ if (( SOURCEONLY )); then
+@@ -2109,6 +2125,18 @@ if (( SOURCEONLY )); then
IGNOREARCH=1
fi
-+PROFDEST=${_PROFDEST:-$PROFDEST}
++if [[ "${0##*/}" = "mkchrootpkg" ]]; then
++ PROFDEST=$PWD #default to $PWD for mkchrootpkg; which should only build one package at a time.
++else
++ PROFDEST=${PROFDEST:-$startdir} #default to $startdir if undefined
++fi
+PROFDEST=${PROFDEST:-$startdir} #default to $startdir if undefined
+if [[ ! -w $PROFDEST ]] ; then
+ error "$(gettext "You do not have write permission to store profiles in %s.")" "$PROFDEST"