summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2009-07-21 01:16:53 +0200
committerAaron Griffin <aaronmgriffin@gmail.com>2009-07-21 01:16:53 +0200
commit798a2cb73ce68ecb1068be1f5a6e93d54150f0c4 (patch)
treea36cc1db3467d04f9a3c28773ae693689dfcdfb1
parentc912283df84f0583496c27a0935d5946ba4dd7cf (diff)
downloaddbscripts-798a2cb73ce68ecb1068be1f5a6e93d54150f0c4.tar.gz
dbscripts-798a2cb73ce68ecb1068be1f5a6e93d54150f0c4.tar.xz
any support: use relative symlinks
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-rwxr-xr-xdb-move2
-rwxr-xr-xdb-update2
-rwxr-xr-xmisc-scripts/ftpdir-cleanup2
3 files changed, 3 insertions, 3 deletions
diff --git a/db-move b/db-move
index 0cc8aa4..8200810 100755
--- a/db-move
+++ b/db-move
@@ -112,7 +112,7 @@ if [ -d "$packagename/repos/$svnrepo_from" ]; then
mv $repoto.db.tar.$DB_COMPRESSION* $ftppath_to/$architecture
if [ "${_arch}" == "any" ]; then
mv ${_pkgfile} $ftppath_to/any
- ln -s $ftppath_to/any/${_pkgfile} $ftppath_to/$architecture/
+ ln -s ../any/${_pkgfile} $ftppath_to/$architecture/
else
mv ${_pkgfile} $ftppath_to/$architecture
fi
diff --git a/db-update b/db-update
index 9d9f7eb..1c6739a 100755
--- a/db-update
+++ b/db-update
@@ -209,7 +209,7 @@ for current_arch in ${ARCHES[@]}; do
die "error: failure while copying files to $ftppath_any"
fi
bf=$(basename $f)
- if ! ln -s "$ftppath_any/$bf" "$ftppath/$bf"; then
+ if ! ln -s "../any/$bf" "$ftppath/$bf"; then
die "error: failed to make link for $bf."
fi
done
diff --git a/misc-scripts/ftpdir-cleanup b/misc-scripts/ftpdir-cleanup
index ca411cf..e319b99 100755
--- a/misc-scripts/ftpdir-cleanup
+++ b/misc-scripts/ftpdir-cleanup
@@ -107,7 +107,7 @@ for mf in $missfiles; do
af_satisfied=0
if [ -e "${ftppath_base}/any/${mf}" ]; then
echo "Restoring missing 'any' symlink: ${mf}"
- ln -s "${ftppath_base}/any/${mf}" "${ftppath}"
+ ln -s "../any/${mf}" "${ftppath}"
else
MISSINGFILES="${MISSINGFILES} ${mf}"
fi