summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2016-11-08 13:13:28 +0100
committerHolger Levsen <holger@layer-acht.org>2016-11-08 13:13:28 +0100
commitdd7d25fbb128d881981641c95c2fd825ac2b0ed5 (patch)
tree051bb530dbed4592530ef14e2ac8fff4a8e51b25 /bin
parent6bd26249586de295030821abd95e9334c3b5c51c (diff)
downloadjenkins.debian.net-dd7d25fbb128d881981641c95c2fd825ac2b0ed5.tar.xz
reproducible Debian: calculate the Edu pkg set correctly: Debian Edu uses recommends, not depends, in its metapackages
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_create_meta_pkg_sets.sh13
1 files changed, 11 insertions, 2 deletions
diff --git a/bin/reproducible_create_meta_pkg_sets.sh b/bin/reproducible_create_meta_pkg_sets.sh
index d5160f05..713539f2 100755
--- a/bin/reproducible_create_meta_pkg_sets.sh
+++ b/bin/reproducible_create_meta_pkg_sets.sh
@@ -390,8 +390,16 @@ update_pkg_sets() {
# Debian Edu
progress_info_begin 18
if [ ! -z $(find $TPATH -maxdepth 1 -mtime +0 -name ${META_PKGSET[18]}.pkgset) ] || [ ! -f $TPATH/${META_PKGSET[18]}.pkgset ] ; then
- chdist --data-dir=$CHPATH grep-dctrl-packages $DISTNAME -X \( -FPriority required --or -FMaintainer debian-edu@lists.debian.org \) > ${TMPFILE2}
+ # all recommends of the education-* packages
+ # (the Debian Edu metapackages don't use depends but recommends…)
+ chdist --data-dir=$CHPATH grep-dctrl-packages $DISTNAME -n -sRecommends -r -FPackage education-* |sed "s#([^()]*)##g ; s#\[[^][]*\]##g ; s#,##g" | sort -u > ${TMPFILE}
+ packages_list_to_deb822
+ mv $TMPFILE ${TMPFILE3}
+ # required and maintained by Debian Edu
+ chdist --data-dir=$CHPATH grep-dctrl-packages $DISTNAME \( -FPriority required --or -FMaintainer debian-edu@lists.debian.org \) > ${TMPFILE2}
get_installable_set ${META_PKGSET[18]}.pkgset
+ mv $TMPFILE ${TMPFILE2}
+ cat ${TMPFILE2} ${TMPFILE3} > $TMPFILE
if [ -f $TMPFILE ] ; then
convert_from_deb822_into_source_packages_only
update_if_similar ${META_PKGSET[18]}.pkgset
@@ -689,6 +697,7 @@ update_pkg_sets() {
TMPFILE=$(mktemp --tmpdir=$TEMPDIR pkg-sets-XXXXXXXXX)
TMPFILE2=$(mktemp --tmpdir=$TEMPDIR pkg-sets-XXXXXXXXX)
+TMPFILE3=$(mktemp --tmpdir=$TEMPDIR pkg-sets-XXXXXXXXX)
for SUITE in $SUITES ; do
if [ "$SUITE" = "experimental" ] ; then
# no pkg sets in experimental
@@ -724,7 +733,7 @@ for SUITE in $SUITES ; do
echo "$(date -u) - Done updating all meta package sets for $SUITE."
done
-rm -f $TMPFILE ${TMPFILE2}
+rm -f $TMPFILE ${TMPFILE2} ${TMPFILE3}
echo
# abort the job if there are problems we cannot do anything about (except filing bugs! (but these are unrelated to reproducible builds...))