From c86ef6103b30313110c542f30e54b07cbcf91f90 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Tue, 6 Jan 2015 21:45:06 +0100 Subject: reproducible: correctly compute source packages binaries are build from --- bin/reproducible_create_meta_pkg_sets.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bin') 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() { -- cgit v1.2.3-70-g09d2