summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux User <ncopa@buildozer.(none)>2008-11-08 08:39:48 +0000
committerLinux User <ncopa@buildozer.(none)>2008-11-08 08:39:48 +0000
commit57e3393b84669b43fcfd76f71f548782b5113246 (patch)
tree0b1d8442716998235a04364ace4e44427b0577b8
parent6271e6b8885c70b3167866ce99954998b7b65825 (diff)
downloadabuild-57e3393b84669b43fcfd76f71f548782b5113246.tar.gz
abuild-57e3393b84669b43fcfd76f71f548782b5113246.tar.bz2
abuild-57e3393b84669b43fcfd76f71f548782b5113246.tar.xz
abuild-57e3393b84669b43fcfd76f71f548782b5113246.zip
create correct links to non-remote sources (patches) if $SRCDEST != $startdir
-rwxr-xr-xabuild5
1 files changed, 4 insertions, 1 deletions
diff --git a/abuild b/abuild
index e43938f..f18d7c0 100755
--- a/abuild
+++ b/abuild
@@ -102,9 +102,12 @@ fetch() {
case "$s" in
http://*|ftp://*)
uri_fetch "$s" || return 1
+ ln -sf "$SRCDEST/${s##*/}" "$srcdir"/
+ ;;
+ *)
+ ln -s "$startdir/$s" "$srcdir/"
;;
esac
- ln -sf "$SRCDEST/${s##*/}" "$srcdir"/
done
}