From fe9d204709ecd38cc989e4ec0efd9b44602b9b56 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 14 Jan 2015 14:23:58 +0100 Subject: refactor --- bin/reproducible_create_meta_pkg_sets.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/reproducible_create_meta_pkg_sets.sh b/bin/reproducible_create_meta_pkg_sets.sh index 2c61420a..6c9f0cb6 100755 --- a/bin/reproducible_create_meta_pkg_sets.sh +++ b/bin/reproducible_create_meta_pkg_sets.sh @@ -31,7 +31,7 @@ chdist --arch=$ARCH apt-get $DISTNAME update # helper functions convert_into_source_packages_only() { - TMP2=$(mktemp) + rm -f ${TMPFILE2} for PKG in $(cat $TMPFILE | sed "s#([^()]*)##g ; s#\[[^][]*\]##g ; s#,##g" |sort -u ) ; do SRC="" if [ ! -z "$PKG" ] ; then @@ -39,12 +39,12 @@ convert_into_source_packages_only() { [ ! -z "$SRC" ] || SRC=$(grep-dctrl -X -n -FPackage -sPackage $PKG $PACKAGES || true) fi [ ! -z "$SRC" ] || SRC=$(echo $PKG ) - echo $SRC >> $TMP2 + echo $SRC >> ${TMPFILE2} done # 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 + cut -d " " -f1 ${TMPFILE2} | cut -d ":" -f1 | sort -u > $TMPFILE + rm ${TMPFILE2} } convert_from_deb822_into_source_packages_only() { -- cgit v1.2.3-70-g09d2