summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2014-01-31 21:24:15 +0100
committerFlorian Pritz <bluewind@xinu.at>2015-05-27 15:46:04 +0200
commit68360bd443deaa0ae2d9dde7cfd905a3a46f76cc (patch)
treee445fb2b6484eefba7dcd436e33e615b4ade9d8a
parentb26d12f75d27e58ce04da45fc901488e4cd95fbf (diff)
downloaddbscripts-68360bd443deaa0ae2d9dde7cfd905a3a46f76cc.tar.gz
dbscripts-68360bd443deaa0ae2d9dde7cfd905a3a46f76cc.tar.xz
cleanup
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r--db-functions2
-rwxr-xr-xdb-move5
2 files changed, 5 insertions, 2 deletions
diff --git a/db-functions b/db-functions
index ed986c9..6efd85d 100644
--- a/db-functions
+++ b/db-functions
@@ -515,7 +515,7 @@ arch_add_to_pool() {
fi
}
-# add a package name (from the pool) to the database
+# add a package file (from the pool) to the database
# call arch_add_to_pool first
arch_db_add() {
local repo="$1"
diff --git a/db-move b/db-move
index b9f0e3b..35e8aca 100755
--- a/db-move
+++ b/db-move
@@ -28,13 +28,16 @@ done
msg "Moving packages from [${repo_from}] to [${repo_to}]..."
+# TODO: resolve pkgname to pkgfile for db_add
+# and actually make this script callable
+# with a pkgname rather than a pkgfile
for pkg in "${pkgs[@]}"; do
pkgname=$(getpkgname "$FTP_BASE/$PKGPOOL/$pkg")
arch_db_add "${repo_to}" "$arch" "$pkg"
arch_db_remove "${repo_from}" "$arch" "$pkgname"
done
-arch_history_commit "db-move: $add_pkgs[@]"
+arch_history_commit "db-move: ${pkgs[@]}"
for pkgarch in ${ARCHES[@]}; do
repo_unlock ${repo_from} ${pkgarch}