summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-09-28 02:30:32 +0200
committerHolger Levsen <holger@layer-acht.org>2014-09-28 02:30:32 +0200
commita8fcc914351ba39cd516f76bf5af51732d0b13fc (patch)
tree07e4b0cb3aa9cb31a29b51a7bd08a294ad454d4a
parent2c4c1b8a04b2e18cbde1af33431afef04cc27664 (diff)
downloadjenkins.debian.net-a8fcc914351ba39cd516f76bf5af51732d0b13fc.tar.xz
fix typos
-rwxr-xr-xbin/reproducible_build.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index c54afed6..225e39fd 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -24,7 +24,7 @@ if [ ! -f $PACKAGES_DB ] ; then
version TEXT NOT NULL,
status TEXT NOT NULL
CHECK (status IN ("FTBFS","reproducible","unreproducible","404")),
- date TEXT NOT NULL,
+ build_date TEXT NOT NULL,
diffp_path TEXT,
PRIMARY KEY (name))'
fi
@@ -63,13 +63,13 @@ for SRCPACKAGE in $PACKAGES ; do
let "COUNT_TOTAL=COUNT_TOTAL+1"
rm b1 b2 -rf
set +e
- DATE=(date +'%Y-%m-%d %H:%M')
+ DATE=$(date +'%Y-%m-%d %H:%M')
apt-get source --download-only ${SRCPACKAGE}
RESULT=$?
if [ $RESULT != 0 ] ; then
SOURCELESS="${SOURCELESS} ${SRCPACKAGE}"
echo "Warning: ${SRCPACKAGE} is not a source package, or was removed or renamed. Please investigate."
- sqlite3 $PACKAGES_DB "REPLACE INTO source_packages VALUES (\"${SRCPACKAGE}\", \"none available\", \"404\", \'$DATE\', \'\')"
+ sqlite3 $PACKAGES_DB "REPLACE INTO source_packages VALUES (\"${SRCPACKAGE}\", \"none available\", \"404\", \"$DATE\", \"\")"
else
VERSION=$(grep ^Version ${SRCPACKAGE}_*.dsc | cut -d " " -f2 | head -1)
STATUS=$(sqlite3 $PACKAGES_DB "SELECT status FROM source_packages WHERE name = \"${SRCPACKAGE}\" AND version = \"${VERSION}\"")
@@ -100,20 +100,20 @@ for SRCPACKAGE in $PACKAGES ; do
figlet ${SRCPACKAGE}
echo
echo "${SRCPACKAGE} built successfully and reproducibly."
- sqlite3 $PACKAGES_DB "REPLACE INTO source_packages VALUES (\"${SRCPACKAGE}\", \"${VERSION}\", \"reproducible\", \'$DATE\', \'\')"
+ sqlite3 $PACKAGES_DB "REPLACE INTO source_packages VALUES (\"${SRCPACKAGE}\", \"${VERSION}\", \"reproducible\", \"$DATE\", \"\")"
let "COUNT_GOOD=COUNT_GOOD+1"
GOOD="${SRCPACKAGE} ${GOOD}"
touch results/___.dummy.log # not having any bad logs is not a reason for failure
else
echo "Warning: ${SRCPACKAGE} failed to build reproducibly."
- sqlite3 $PACKAGES_DB "REPLACE INTO source_packages VALUES (\"${SRCPACKAGE}\", \"${VERSION}\", \"unreproducible\", \'$DATE\', \'\')"
+ sqlite3 $PACKAGES_DB "REPLACE INTO source_packages VALUES (\"${SRCPACKAGE}\", \"${VERSION}\", \"unreproducible\", \"$DATE\", \"\")"
let "COUNT_BAD=COUNT_BAD+1"
BAD="${SRCPACKAGE} ${BAD}"
rm -f results/dummy.log 2>/dev/null # just cleanup
fi
rm b1 b2 -rf
else
- sqlite3 $PACKAGES_DB "REPLACE INTO source_packages VALUES (\"${SRCPACKAGE}\", \"${VERSION}\", \"FTBFS\", \'$DATE\', \'\')"
+ sqlite3 $PACKAGES_DB "REPLACE INTO source_packages VALUES (\"${SRCPACKAGE}\", \"${VERSION}\", \"FTBFS\", \"$DATE\", \"\")"
fi
dcmd rm ${SRCPACKAGE}_*.dsc