From 590182d0475ce8735c0bb43fbad786a08e8b10e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kadu=20Di=C3=B3genes?= Date: Mon, 27 Jun 2016 11:49:46 -0300 Subject: [PATCH] also check customizepkg in home dir --- src/lib/pkgbuild.sh.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/pkgbuild.sh.in b/src/lib/pkgbuild.sh.in index cdf9afb..a3a8489 100644 --- a/src/lib/pkgbuild.sh.in +++ b/src/lib/pkgbuild.sh.in @@ -366,7 +366,8 @@ init_build_dir() { } custom_pkg() { - (( CUSTOMIZEPKGINSTALLED )) && [[ -f "@sysconfdir@/customizepkg.d/$1" ]] && return 0 + LOCALCONFIGDIR=${CUSTOMIZEPKG_CONFIG:-${HOME}/.customizepkg} + (( CUSTOMIZEPKGINSTALLED )) && [[ -f "@sysconfdir@/customizepkg.d/$1" || -f "$LOCALCONFIGDIR/$1" ]] && return 0 return 1 }