aboutsummaryrefslogtreecommitdiff
path: root/trunk/src/createpkg
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/src/createpkg')
-rw-r--r--trunk/src/createpkg18
1 files changed, 17 insertions, 1 deletions
diff --git a/trunk/src/createpkg b/trunk/src/createpkg
index ebebf66..10daf0b 100644
--- a/trunk/src/createpkg
+++ b/trunk/src/createpkg
@@ -248,7 +248,10 @@ function load_parameters {
CREATEPKG_ARCH="`eval_parameter CREATEPKG_ARCH $(default_arch)`"
CREATEPKG_CLEANUP="`eval_parameter CREATEPKG_CLEANUP yes`"
CREATEPKG_AUTHOR="`eval_parameter CREATEPKG_AUTHOR`"
+
TMP="`eval_parameter TMP /tmp`"
+ TMP_USER="`eval_parameter TMP_USER`"
+ TMP_GROUP="`eval_parameter TMP_GROUP`"
SIGN_PACKAGES="`eval_boolean_parameter SIGN_PACKAGES $off`"
SIGN_PACKAGES_USER="`eval_parameter SIGN_PACKAGES_USER`"
@@ -905,7 +908,20 @@ function build_queue {
echo -e "$unable_to_install"
fi
- # Exit if last build package exit status
+ # Fix possible $TMP removal
+ mkdir -p $TMP
+
+ # Fix $TMP user
+ if [ ! -z "$TMP_USER" ]; then
+ chown $TMP_USER $TMP
+ fi
+
+ # Fix $TMP group
+ if [ ! -z "$TMP_GROUP" ]; then
+ chgrp $TMP_GROUP $TMP
+ fi
+
+ # Exit with last build package exit status
exit $last_status
}