diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-01-07 01:23:01 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-01-07 01:23:01 +0100 |
commit | a936c742f2a141b2fb9b0d595ff4ce13e30f3083 (patch) | |
tree | 6c13c47394c437210fc5865787414e438365b014 /bin | |
parent | 3aacfad340befad0a91f7a02cad4e0ec0da4c748 (diff) | |
download | jenkins.debian.net-a936c742f2a141b2fb9b0d595ff4ce13e30f3083.tar.xz |
reproducible: fixup convert_into_source_packages_only()
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_create_meta_pkg_sets.sh | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/bin/reproducible_create_meta_pkg_sets.sh b/bin/reproducible_create_meta_pkg_sets.sh index f33e091d..12193367 100755 --- a/bin/reproducible_create_meta_pkg_sets.sh +++ b/bin/reproducible_create_meta_pkg_sets.sh @@ -21,12 +21,14 @@ convert_into_source_packages_only() { TMP2=$(mktemp) for PKG in $(cat $TMPFILE) ; do 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 + if [ ! -z "$PKG" ] ; then + SRC=$(grep-dctrl -X -n -FPackage -sSource $PKG $PACKAGES ) + [ ! -z "$SRC" ] || SRC=$(grep-dctrl -X -n -FPackage -sPackage $PKG $PACKAGES ) + fi + [ ! -z "$SRC" ] || SRC=$(echo $PKG ) + echo $SRC >> $TMP2 done - # grep-dctrl outpu might include versions (space seperated) and archs (colon seperated) + # grep-dctrl output might include versions (space seperated) and archs (colon seperated) # and duplicates cut -d " " -f1 $TMP2 | cut -d ":" -f1 | sort -u > $TMPFILE rm $TMP2 |