Unverified Commit 0c89cfc4 authored by Mattia Rizzolo's avatar Mattia Rizzolo
Browse files

reproducible: fix some more syntax/type errors caused by the earlier changes

parent 954a9a7f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -207,7 +207,7 @@ update_archlinux_repositories() {
			LIMIT $MAX;"
		local OLD=$(query_db "$QUERY")
		for PKG_ID in $(echo -n "$OLD" | cut -d '|' -f1) ; do
			QUERY="INSERT INTO schedule (package_id, date_scheduled, build_type) 'ALUES ('${PKG_ID}', '$SCHDATE', 'ci_build');"
			QUERY="INSERT INTO schedule (package_id, date_scheduled, build_type) VALUES ('${PKG_ID}', '$SCHDATE', 'ci_build');"
			query_db "$QUERY"
		done
		echo "$(date -u ) - done scheduling $MAX old packages."
+1 −1
Original line number Diff line number Diff line
@@ -368,7 +368,7 @@ write_build_performance_stats() {
	done
	write_page "</tr><tr><td class=\"left\">average test duration (on $DATE)</td>"
	for ARCH in ${ARCHS} ; do
		RESULT=$(query_db "SELECT COALESCE(CAST(AVG(r.build_duration) AS INTEGER), 0) FROM results AS r JOIN sources AS s ON r.package_id=s.id WHERE r.build_duration!='0' AND r.build_date LIKE '%$DATE%' AND s.architecture='$ARCH'")
		RESULT=$(query_db "SELECT COALESCE(CAST(AVG(r.build_duration) AS INTEGER), 0) FROM results AS r JOIN sources AS s ON r.package_id=s.id WHERE r.build_duration!='0' AND r.build_date::date = '$DATE' AND s.architecture='$ARCH'")
		MIN=$(echo $RESULT/60|bc)
		SEC=$(echo "$RESULT-($MIN*60)"|bc)
		write_page "<td>$MIN min., $SEC sec.</td>"
+1 −0
Original line number Diff line number Diff line
@@ -55,6 +55,7 @@ crossarch = {}
crossarchversions = {}
for row in result:
    pkg = dict(zip(keys, row))
    pkg['build_date'] = str(pkg['build_date'])
    log.debug(pkg)
    output.append(pkg)