summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2015-08-26 18:15:39 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2015-08-26 18:15:39 -0300
commitee874ec6d33b8a50007ab685393226fd50b5afcc (patch)
treefb5fc07d0eac53d0282887c51d44b401e0165880
parentaf870591f68546a1ffd248314b1a01e09d6c1235 (diff)
fix db-pkg-add
-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