From 99045844a41ab7e070d992bcf3baf944580978fd Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 20 Oct 2014 19:33:56 +0200 Subject: add some TODOs Signed-off-by: Florian Pritz --- db-functions | 1 + db-update | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/db-functions b/db-functions index 83f1732..abec505 100644 --- a/db-functions +++ b/db-functions @@ -561,6 +561,7 @@ arch_db_move() { local ftppath_from="${FTP_BASE}/${repo_from}/os/" + # TODO: detect if a pkgname has been removed from a split package and clean up the repo for pkgname in "${pkgnames[@]}"; do pkgentry=$(pkgentry_from_db "$repo_from" "$arch" "$pkgname") pkgs=($(getpkgfiles "$ftppath_from$arch/$pkgentry"*${PKGEXT})) diff --git a/db-update b/db-update index 52ed996..76f7a12 100755 --- a/db-update +++ b/db-update @@ -57,6 +57,10 @@ for repo in ${repos[@]}; do fi done +# TODO: check if all packages of a splitpkg are being pushed (or if they already exist in the repo: foo-x86_64 foo-data, later push foo-i686) + +# TODO: detect if a pkgname has been removed from a split package and clean up the repo + for repo in ${repos[@]}; do for pkgfile in $(getpkgfiles "${STAGING}/${repo}/"*${PKGEXT} 2>/dev/null); do arch_add_to_pool "$pkgfile" -- cgit v1.2.3-24-g4f1b