From fa4ff798507ded0b26dcdc310d1f97e2e61198c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?coadde=20=5BM=C3=A1rcio=20Alexandre=20Silva=20Delgado=5D?= Date: Wed, 23 Sep 2015 18:30:39 -0300 Subject: rename FTP_BASE -> root_dir --- db-repo-add | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'db-repo-add') diff --git a/db-repo-add b/db-repo-add index 4611bdf..024fce8 100755 --- a/db-repo-add +++ b/db-repo-add @@ -12,7 +12,7 @@ repo="$1" arch="$2" pkgfiles=("${@:3}") -ftppath="$FTP_BASE/$repo/os" +ftppath="${root_dir}/$repo/os" if ! check_repo_permission "$repo"; then die "You don't have permission to add packages to %s" "${repo}" @@ -30,8 +30,8 @@ done for tarch in "${tarches[@]}"; do for pkgfile in "${pkgfiles[@]}"; do - if [[ ! -f "${FTP_BASE}/${repo}/os/${arch}/${pkgfile##*/}" ]]; then - die "Package file %s not found in %s" "${pkgfile##*/}" "${FTP_BASE}/${repo}/os/${arch}/" + if [[ ! -f "${root_dir}/${repo}/os/${arch}/${pkgfile##*/}" ]]; then + die "Package file %s not found in %s" "${pkgfile##*/}" "${root_dir}/${repo}/os/${arch}/" else msg "Adding %s to [%s]..." "$pkgfile" "$repo" fi -- cgit v1.2.3-2-g168b