summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-01-14 14:23:58 +0100
committerHolger Levsen <holger@layer-acht.org>2015-01-14 14:23:58 +0100
commitfe9d204709ecd38cc989e4ec0efd9b44602b9b56 (patch)
treef2bfaf74715711ee35989ac3d2d1cd02931f4bec
parent966b800c9bc94e49cc49ec366c55d63852423c2d (diff)
downloadjenkins.debian.net-fe9d204709ecd38cc989e4ec0efd9b44602b9b56.tar.xz
refactor
-rwxr-xr-xbin/reproducible_create_meta_pkg_sets.sh8
1 files 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() {