diff options
author | Florian Pritz <bluewind@xinu.at> | 2014-01-31 21:24:15 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2015-05-27 15:46:04 +0200 |
commit | 68360bd443deaa0ae2d9dde7cfd905a3a46f76cc (patch) | |
tree | e445fb2b6484eefba7dcd436e33e615b4ade9d8a | |
parent | b26d12f75d27e58ce04da45fc901488e4cd95fbf (diff) | |
download | dbscripts-68360bd443deaa0ae2d9dde7cfd905a3a46f76cc.tar.gz dbscripts-68360bd443deaa0ae2d9dde7cfd905a3a46f76cc.tar.xz |
cleanup
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r-- | db-functions | 2 | ||||
-rwxr-xr-x | db-move | 5 |
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" @@ -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} |