From 798a2cb73ce68ecb1068be1f5a6e93d54150f0c4 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Mon, 20 Jul 2009 19:16:53 -0400 Subject: any support: use relative symlinks Signed-off-by: Aaron Griffin --- db-move | 2 +- db-update | 2 +- misc-scripts/ftpdir-cleanup | 2 +- 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 -- cgit v1.2.3