Fix creation of source package with local source files

Fixes FS#11149.

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Allan McRae 2008-08-09 15:54:29 +10:00 committed by Dan McGee
parent d8f8a12665
commit 57bd8974c7

View file

@ -957,7 +957,7 @@ create_srcpackage() {
local file=$(strip_url "$netfile") local file=$(strip_url "$netfile")
if [ -f "$netfile" ]; then if [ -f "$netfile" ]; then
msg2 "$(gettext "Adding %s...")" "$netfile" msg2 "$(gettext "Adding %s...")" "$netfile"
ln -s $netfile "${srclinks}/${pkgname}" ln -s "${startdir}/$netfile" "${srclinks}/${pkgname}"
elif [ "$SOURCEONLY" = "2" -a -f "$SRCDEST/$file" ]; then elif [ "$SOURCEONLY" = "2" -a -f "$SRCDEST/$file" ]; then
msg2 "$(gettext "Adding %s...")" "$file" msg2 "$(gettext "Adding %s...")" "$file"
ln -s "$SRCDEST/$file" "${srclinks}/${pkgname}/" ln -s "$SRCDEST/$file" "${srclinks}/${pkgname}/"