summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-01-06 22:06:34 +0100
committerHolger Levsen <holger@layer-acht.org>2015-01-06 22:06:34 +0100
commit74d70cfdd7d75b516e75aec4f4c3e5f1b9948cdb (patch)
tree2b2142b66935fab9270dc778dcadb12f2571fa06
parent768640ee4d2f9a0127c8299bb2004e2253924737 (diff)
downloadjenkins.debian.net-74d70cfdd7d75b516e75aec4f4c3e5f1b9948cdb.tar.xz
reproducible: fixup fix for getting the right source packages
-rwxr-xr-xbin/reproducible_create_meta_pkg_sets.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/reproducible_create_meta_pkg_sets.sh b/bin/reproducible_create_meta_pkg_sets.sh
index febe9c09..769cb3cd 100755
--- a/bin/reproducible_create_meta_pkg_sets.sh
+++ b/bin/reproducible_create_meta_pkg_sets.sh
@@ -20,7 +20,11 @@ TMPFILE=$(mktemp)
convert_into_source_packages_only() {
TMP2=$(mktemp)
for PKG in $(cat $TMPFILE) ; do
- [ -z "$PKG" ] || ( grep-dctrl -X -n -FPackage -sSource $PKG $PACKAGES || echo $PKG ) >> $TMP2
+ SRC=""
+ [ -z "$PKG" ] || SRC=$(grep-dctrl -X -n -FPackage -sSource $PKG $PACKAGES )
+ [ -z "$PKG" ] || SRC=$(grep-dctrl -X -n -FPackage -sPackage $PKG $PACKAGES )
+ [ -z "$PKG" ] || SRC=$(echo $PKG )
+ echo $PKG >> $TMP2
done
# grep-dctrl outpu might include versions (space seperated) and archs (colon seperated)
# and duplicates