Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/scripts/makepkg.sh.in
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2010-06-09 13:45:22 +1000
committerAllan McRae <allan@archlinux.org>2010-06-09 15:58:05 +1000
commitac5c2fd09b6b612fe956ac40f8f90a0cd26881a9 (patch)
tree6605300cbdafc9fb60e8f7902b1570744568ba10 /scripts/makepkg.sh.in
parent8163beb622733824d9e7baa884a574ac36ad3d8e (diff)
Fix creation of source packages
Source packages were getting created with only links to local source files. Caused by commit 5cddcc90. Also, fix dangling symlinks to install and changelog files. Caused by commit fe1e3471. Thanks to Christopher Rogers <slaxemulator@gmail.com> for pointing out areas that were failing. Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts/makepkg.sh.in')
-rw-r--r--scripts/makepkg.sh.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 8d6d1f63..86984db2 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1096,7 +1096,7 @@ create_srcpackage() {
for file in "${source[@]}"; do
if [[ -f $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,9 +1110,9 @@ create_srcpackage() {
local file
for file in ${!i}; do
# evaluate any bash variables used
- eval file='${srclinks}/${pkgbase}/'${file}
- if [[ ! -f $file ]]; then
- msg2 "$(gettext "Adding %s file (%s)...")" "$i" "${file##*/}"
+ eval file=${file}
+ if [[ ! -f "${srclinks}/${pkgbase}/$file" ]]; then
+ msg2 "$(gettext "Adding %s file (%s)...")" "$i" "${file}"
ln -s "${startdir}/$file" "${srclinks}/${pkgbase}/"
fi
done