Skip to content
This repository has been archived by the owner on Aug 9, 2019. It is now read-only.

Commit

Permalink
Merge pull request #280 from cerdiogenes/support-local-files
Browse files Browse the repository at this point in the history
also check customizepkg in home dir
  • Loading branch information
larchunix authored Jun 27, 2016
2 parents d86fde8 + 590182d commit a945c4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/pkgbuild.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit a945c4d

Please sign in to comment.