From 88d100adb9746421f62bce077b02ddbc5da557a7 Mon Sep 17 00:00:00 2001 From: Christopher Rogers Date: Tue, 8 Jun 2010 21:43:10 -0400 Subject: [PATCH] Fixed makepkg --allsource and --source. Signed-off-by: Christopher Rogers --- scripts/makepkg.sh.in | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 8d6d1f6..52b7554 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -1094,9 +1094,9 @@ create_srcpackage() { local file for file in "${source[@]}"; do - if [[ -f $file ]]; then + if [[ -f $startdir/$file ]]; then msg2 "$(gettext "Adding %s...")" "$file" - ln -s "$file" "$srclinks/$pkgbase" + ln -s "$startdir/$file" "$srclinks/$pkgbase" elif (( SOURCEONLY == 2 )); then local absfile=$(get_filepath "$file") || missing_source_file "$file" msg2 "$(gettext "Adding %s...")" "${absfile##*/}" @@ -1110,8 +1110,8 @@ create_srcpackage() { local file for file in ${!i}; do # evaluate any bash variables used - eval file='${srclinks}/${pkgbase}/'${file} - if [[ ! -f $file ]]; then + eval file=${file} + if [[ -f $startdir/$file ]]; then msg2 "$(gettext "Adding %s file (%s)...")" "$i" "${file##*/}" ln -s "${startdir}/$file" "${srclinks}/${pkgbase}/" fi -- 1.7.1