summaryrefslogtreecommitdiff
path: root/db-move
diff options
context:
space:
mode:
Diffstat (limited to 'db-move')
-rwxr-xr-xdb-move8
1 files changed, 4 insertions, 4 deletions
diff --git a/db-move b/db-move
index 275a11a..3df0fd1 100755
--- a/db-move
+++ b/db-move
@@ -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