summaryrefslogtreecommitdiff
path: root/db-repo-add
diff options
context:
space:
mode:
Diffstat (limited to 'db-repo-add')
-rwxr-xr-xdb-repo-add6
1 files changed, 3 insertions, 3 deletions
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