summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-01-03 21:36:05 +0100
committerHolger Levsen <holger@layer-acht.org>2015-01-03 21:36:05 +0100
commit1b55d43986aa86f504b1e0e7f824a88f784c515c (patch)
treeb14edf1d3f37057ed8290a48f716cefca97a055c /bin
parent2a9892f2952ab659f68ce33181ae2841e7686f38 (diff)
downloadjenkins.debian.net-1b55d43986aa86f504b1e0e7f824a88f784c515c.tar.xz
fix a few typos
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_create_meta_pkg_sets.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/bin/reproducible_create_meta_pkg_sets.sh b/bin/reproducible_create_meta_pkg_sets.sh
index 1e717096..3fb2accd 100755
--- a/bin/reproducible_create_meta_pkg_sets.sh
+++ b/bin/reproducible_create_meta_pkg_sets.sh
@@ -16,7 +16,7 @@ PACKAGES=/schroots/reproducible-sid/var/lib/apt/lists/*Packages
SOURCES=/schroots/reproducible-sid/var/lib/apt/lists/*Sources
# helper functions
-turn_tmpfile_into_sources() {
+convert_into_source_packages_only() {
TMP2=$(mktemp)
for PKG in $(cat $TMPFILE) ; do
( grep-dctrl -FBinary -sPackage -n $PKG $SOURCES || echo $PKG ) >> $TMP2
@@ -27,9 +27,9 @@ turn_tmpfile_into_sources() {
update_if_similar() {
# this is mostly done to not accidently overwrite the lists
# with garbage, eg. when external services are down
- TARGETPATH=/srv/reproducible-results/meta_pkgsets/$1
- LENGTH=$(wc -l $TARGET)
- NEWLEN=$(wc -l $TMPFILE)
+ TARGET=/srv/reproducible-results/meta_pkgsets/$1
+ LENGTH=$(cat $TARGET | wc -w)
+ NEWLEN=$(cat $TMPFILE | wc -w)
PERCENT=$(echo "$LENGTH*100/$NEWLEN"|bc)
if [ $PERCENT -gt 107 ] || [ $PERCENT -lt 93 ] ; then
mv $TMPFILE $TARGET.new
@@ -65,7 +65,8 @@ update_if_similar ${META_PKGSET[4]}.pkgset
# tails
curl http://nightly.tails.boum.org/build_Tails_ISO_feature-jessie/latest.iso.binpkgs > $TMPFILE
-curl wget http://nightly.tails.boum.org/build_Tails_ISO_feature-jessie/latest.iso.srcpkgs >> $TMPFILE
+curl http://nightly.tails.boum.org/build_Tails_ISO_feature-jessie/latest.iso.srcpkgs >> $TMPFILE
+cat $TMPFILE
convert_into_source_packages_only
update_if_similar ${META_PKGSET[5]}.pkgset