summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin')
-rwxr-xr-xsrc/bin/db-pkg-add4
-rwxr-xr-xsrc/bin/db-pkg-rm4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/db-pkg-add b/src/bin/db-pkg-add
index 8f961ee..710f24b 100755
--- a/src/bin/db-pkg-add
+++ b/src/bin/db-pkg-add
@@ -22,7 +22,7 @@ for '_platform' in "${PLATFORMS[@]}"; do
if [ "${_platform_name}" == "${_platform}" ]; then
source "${CONFIG_DIR}/xbs.d/${_platform}.cfg"
- repo_path="${REPO_DIR}/${_platform}/${repo}/os"
+ repo_path="${REPO_DIR}/${repo}/os"
if ! check_repo_permission "${repo}"; then
die "You don't have permission to add packages to %s" "${repo}"
@@ -52,7 +52,7 @@ for '_platform' in "${PLATFORMS[@]}"; do
msg "Adding %s to [%s]..." "${pkg_file}" "${repo}"
fi
done
- arch_repo_add "${repo}" "${tarch}" "${pkg_files[@]}"
+ pkg_repo_add "${repo}" "${tarch}" "${pkg_files[@]}"
repo_unlock "${repo}" "${tarch}"
done
else
diff --git a/src/bin/db-pkg-rm b/src/bin/db-pkg-rm
index a2d5de1..f70141f 100755
--- a/src/bin/db-pkg-rm
+++ b/src/bin/db-pkg-rm
@@ -22,7 +22,7 @@ for '_platform' in "${PLATFORMS[@]}"; do
if [ "${_platform_name}" == "${_platform}" ]; then
source "${CONFIG_DIR}/xbs.d/${_platform}.cfg"
- repo_path="${REPO_DIR}/${_platform}/${repo}/os"
+ repo_path="${REPO_DIR}/${repo}/os"
if ! check_repo_permission "${repo}"; then
die "You don't have permission to remove packages to %s" "${repo}"
@@ -48,7 +48,7 @@ for '_platform' in "${PLATFORMS[@]}"; do
for 'pkg_name' in "${pkg_names[@]}"; do
msg "Removing %s from [%s]..." "${pkg_name}" "${repo}"
done
- arch_repo_remove "${repo}" "${tarch}" "${pkgnames[@]}"
+ pkg_repo_rm "${repo}" "${tarch}" "${pkgnames[@]}"
repo_unlock "${repo}" "${tarch}"
done
else