aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-checkparams
diff options
context:
space:
mode:
authorLoïc Minier <lool@dooz.org>2009-12-27 10:51:59 +0100
committerLoïc Minier <lool@dooz.org>2009-12-27 10:51:59 +0100
commit6c73bf0958124db588b14975fbef1d3ef2dae6c6 (patch)
tree0f698ec7ad4b3396d2b9429b04302564f4a4a930 /pbuilder-checkparams
parentdb5c58bc4654fe13f3a7da77d6b5fdeed70a613a (diff)
downloadpbuilder-6c73bf0958124db588b14975fbef1d3ef2dae6c6.tar
pbuilder-6c73bf0958124db588b14975fbef1d3ef2dae6c6.tar.gz
Honor PBUILDER_ROOT and PBUILDER_*DIR vars
Use GNU-style vars for system directories, allow to set them from the env, and let them be prefixed with a PBUILDER_ROOT directory to allow relocation.
Diffstat (limited to 'pbuilder-checkparams')
-rwxr-xr-xpbuilder-checkparams6
1 files changed, 4 insertions, 2 deletions
diff --git a/pbuilder-checkparams b/pbuilder-checkparams
index 37b8f42..6debb03 100755
--- a/pbuilder-checkparams
+++ b/pbuilder-checkparams
@@ -21,8 +21,10 @@
# This code is called for pbuilder and pbuilder inside pbuilder-uml;
# pbuilder-uml calls uml-checkparams.
-. /usr/lib/pbuilder/pbuilder-loadconfig
-. /usr/lib/pbuilder/pbuilder-modules
+export PBUILDER_PKGLIBDIR="${PBUILDER_PKGLIBDIR:-${PBUILDER_ROOT}/usr/lib/pbuilder}"
+
+. "$PBUILDER_PKGLIBDIR"/pbuilder-loadconfig
+. "$PBUILDER_PKGLIBDIR"/pbuilder-modules
#default value for this option is !empty!
INTERNAL_BUILD_UML=""