Merge remote-tracking branch 'dave/makepkg'

This commit is contained in:
Dan McGee 2011-06-30 10:41:49 -05:00
commit c2cce4f3f5
1 changed files with 3 additions and 5 deletions

View File

@ -284,7 +284,7 @@ check_option() {
# ? - not found
##
check_buildenv() {
echo $(in_opt_array "$1" ${BUILDENV[@]})
in_opt_array "$1" ${BUILDENV[@]}
}
@ -1134,7 +1134,7 @@ create_package() {
# check for changelog/install files
for i in 'changelog/.CHANGELOG' 'install/.INSTALL'; do
IFS='/' read -r orig dest <<< "$i"
IFS='/' read -r orig dest < <(printf '%s\n' "$i")
if [[ -n ${!orig} ]]; then
msg2 "$(gettext "Adding %s file...")" "$orig"
@ -2009,9 +2009,7 @@ if [[ -n "${PKGLIST[@]}" ]]; then
fi
# check if gpg signature is to be created and if signing key is valid
if [[ -z "$SIGNPKG" && $(check_buildenv sign) == 'y' ]]; then
SIGNPKG='y'
fi
[[ -z $SIGNPKG ]] && SIGNPKG=$(check_buildenv sign)
if [[ $SIGNPKG == 'y' ]]; then
if ! gpg --list-key ${GPGKEY} &>/dev/null; then
if [[ ! -z $GPGKEY ]]; then