From 4f59701699c2cccaebb0d9bbfade17a24bb54a96 Mon Sep 17 00:00:00 2001 From: Sapphira Armageddos Date: Sun, 8 Jan 2012 21:08:06 +1000 Subject: [PATCH] makepkg: look in SRCDEST for local file when making source package Signed-off-by: Allan McRae --- scripts/makepkg.sh.in | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 769bec7..16f3682 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -1351,6 +1351,9 @@ create_srcpackage() { if [[ -f $file ]]; then msg2 "$(gettext "Adding %s...")" "$file" ln -s "${startdir}/$file" "$srclinks/$pkgbase" + elif [[ -f "${SRCDEST}/$file" ]]; then + msg2 "$(gettext "Adding %s...")" "$file" + ln -s "${SRCDEST}/$file" "$srclinks/$pkgbase" elif (( SOURCEONLY == 2 )); then local absfile=$(get_filepath "$file") || missing_source_file "$file" msg2 "$(gettext "Adding %s...")" "${absfile##*/}" -- 1.7.8.1