summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-01-06 21:45:06 +0100
committerHolger Levsen <holger@layer-acht.org>2015-01-06 21:45:06 +0100
commitc86ef6103b30313110c542f30e54b07cbcf91f90 (patch)
tree32754278aac975a25bb656c5463e650c566a5ca8 /bin
parentded5857c04461d705b569c7d27af3e856ccfe649 (diff)
downloadjenkins.debian.net-c86ef6103b30313110c542f30e54b07cbcf91f90.tar.xz
reproducible: correctly compute source packages binaries are build from
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_create_meta_pkg_sets.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/reproducible_create_meta_pkg_sets.sh b/bin/reproducible_create_meta_pkg_sets.sh
index f861eae3..52118448 100755
--- a/bin/reproducible_create_meta_pkg_sets.sh
+++ b/bin/reproducible_create_meta_pkg_sets.sh
@@ -20,9 +20,11 @@ TMPFILE=$(mktemp)
convert_into_source_packages_only() {
TMP2=$(mktemp)
for PKG in $(cat $TMPFILE) ; do
- ( grep-dctrl -X -FBinary -sPackage -n $PKG $SOURCES || echo $PKG ) >> $TMP2
+ [ -z "$PKG" ] || ( grep-dctrl -X -n -FPackage -sSource $PKG $PACKAGES || echo $PKG ) >> $TMP2
done
- sort -u $TMP2 > $TMPFILE
+ # grep-dctrl outpu might include versions (space seperated) and archs (colon seperated)
+ # and duplicates
+ cut -d " " -f1 $TMP2 | cut -d ":" -f1 | sort -u > $TMPFILE
rm $TMP2
}
update_if_similar() {