diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-09-23 18:30:39 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-09-23 18:30:39 -0300 |
commit | fa4ff798507ded0b26dcdc310d1f97e2e61198c4 (patch) | |
tree | b1a7a66b187fb3825f24fba79603a19bd9036127 /db-move | |
parent | a6f91db681e302763b687bb47abb5d258948007b (diff) |
rename FTP_BASE -> root_dir
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 |