summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2016-11-08 15:23:19 +0100
committerHolger Levsen <holger@layer-acht.org>2016-11-08 15:23:19 +0100
commit67fb472b40eedd71af87a1b01538431f41ec459e (patch)
tree1e69273e6030266dd9ea9f760b657b0a0e79a9bf /bin
parent89d818890f4d70b59b638f88c13622a809dd9fe3 (diff)
downloadjenkins.debian.net-67fb472b40eedd71af87a1b01538431f41ec459e.tar.xz
reproducible Debian: final refactoring, DRY
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_create_meta_pkg_sets.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/bin/reproducible_create_meta_pkg_sets.sh b/bin/reproducible_create_meta_pkg_sets.sh
index badc4395..fb68bb6b 100755
--- a/bin/reproducible_create_meta_pkg_sets.sh
+++ b/bin/reproducible_create_meta_pkg_sets.sh
@@ -148,6 +148,9 @@ use_previous_sets_build_depends() {
}
update_pkg_set_specific() {
+ #
+ # bin/meta_pkgset.csv defines the names of the packages set and their ordering/numbering
+ #
case $index in
1) # the essential package set
chdist --data-dir=$CHPATH grep-dctrl-packages $DISTNAME -X -FEssential yes > $TMPFILE
@@ -435,7 +438,8 @@ update_pkg_set_specific() {
}
update_pkg_sets() {
- for index in $(seq 1 $1) ; do
+ # loop through all defined package sets…
+ for index in $(seq 1 ${#META_PKGSET[@]}) ; do
progress_info_begin $index
if [ ! -z $(find $TPATH -maxdepth 1 -mtime +0 -name ${META_PKGSET[$index]}.pkgset) ] || [ ! -f $TPATH/${META_PKGSET[$index]}.pkgset ] ; then
update_pkg_set_specific
@@ -481,8 +485,8 @@ for SUITE in $SUITES ; do
echo "============================================================================="
echo "$(date -u) - Creating meta package sets for $SUITE now."
echo "============================================================================="
- # bin/meta_pkgset.csv defines the names of the packages set and their ordering
- update_pkg_sets 45
+ update_pkg_sets
+
echo
echo "============================================================================="
echo "$(date -u) - Done updating all meta package sets for $SUITE."