summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-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