diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-07-20 19:16:53 -0400 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-07-20 19:16:53 -0400 |
commit | 798a2cb73ce68ecb1068be1f5a6e93d54150f0c4 (patch) | |
tree | a36cc1db3467d04f9a3c28773ae693689dfcdfb1 | |
parent | c912283df84f0583496c27a0935d5946ba4dd7cf (diff) |
any support: use relative symlinks
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-rwxr-xr-x | db-move | 2 | ||||
-rwxr-xr-x | db-update | 2 | ||||
-rwxr-xr-x | misc-scripts/ftpdir-cleanup | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -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 @@ -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 |