diff options
Diffstat (limited to 'db-move')
-rwxr-xr-x | db-move | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -11,8 +11,8 @@ fi args=("${@}") repo_from="${args[0]}" repo_to="${args[1]}" -ftppath_from="${FTP_BASE}/${repo_from}/os/" -ftppath_to="${FTP_BASE}/${repo_to}/os/" +ftppath_from="${root_dir}/${repo_from}/os/" +ftppath_to="${root_dir}/${repo_to}/os/" if ! check_repo_permission "$repo_to" || ! check_repo_permission "$repo_from"; then die "You don't have permission to move packages from %s to %s" "${repo_from}" "${repo_to}" @@ -82,10 +82,10 @@ for pkgbase in "${args[@]:2}"; do pkgfile="${pkgpath##*/}" ln -s "../../../${PKGPOOL}/${pkgfile}" "${ftppath_to}/${tarch}/" - if [ -f "${FTP_BASE}/${PKGPOOL}/${pkgfile}.sig" ]; then + if [ -f "${root_dir}/${PKGPOOL}/${pkgfile}.sig" ]; then ln -s "../../../${PKGPOOL}/${pkgfile}.sig" "${ftppath_to}/${tarch}/" fi - add_pkgs[${tarch}]+="${FTP_BASE}/${PKGPOOL}/${pkgfile} " + add_pkgs[${tarch}]+="${root_dir}/${PKGPOOL}/${pkgfile} " remove_pkgs[${tarch}]+="${pkgname} " done done |