summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/bin/db-pkg-add8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/bin/db-pkg-add b/src/bin/db-pkg-add
index 509161f..28483b8 100755
--- a/src/bin/db-pkg-add
+++ b/src/bin/db-pkg-add
@@ -11,23 +11,17 @@ db-pkg-add_usage() {
exit 1
}
-db-pkg-add_check-repo-permission() {
+db-pkg-add_run() {
if ! check_repo_permission "$repo"; then
die "You don't have permission to add packages to %s" "${repo}"
fi
-}
-db-pkg-add_check-arch-if-any() {
if [ "$arch" == "any" ]; then
tarches=("${ARCHES[@]}")
else
tarches=("$arch")
fi
-}
-db-pkg-add_exec() {
- db-pkg-add_check-repo-permission
- db-pkg-add_check-arch-if-any
for tarch in "${tarches[@]}"; do
repo_lock "$repo" "$tarch" || exit 1
for pkg_file in "${pkg_files[@]}"; do