Commit 0b4cb6a2 authored by Holger Levsen's avatar Holger Levsen
Browse files

reproducible Debian: update for salsa (untested, might still be broken, as it parse HTML output…)

parent b3200bc9
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
#!/bin/bash
# vim: set noexpandtab:

# Copyright 2015-2017 Holger Levsen <holger@layer-acht.org>
# Copyright 2015-2018 Holger Levsen <holger@layer-acht.org>
# released under the GPLv=2

DEBUG=false
@@ -156,12 +156,12 @@ for PKG in $SOURCEPKGS ; do
	write_row "<tr><td><pre>src:$PKG</pre></td>"
	write_row " <td>"
	GIT="$PKG.git"
	URL="https://anonscm.debian.org/git/reproducible/$GIT/?h=pu/reproducible_builds"
	URL="https://salsa.debian.org/reproducible-builds/packages/$PKG/tree/pu/reproducible_builds"
	custom_curl $URL $TMPFILE
	if [ "$(grep "'error'>No repositories found" $TMPFILE 2>/dev/null)" ] ; then
		write_row "<span class=\"red\">no git repository found:</span><br />$URL"
	elif [ "$(grep "'error'>Invalid branch" $TMPFILE 2>/dev/null)" ] ; then
		URL="https://anonscm.debian.org/git/reproducible/$GIT/?h=merged/reproducible_builds"
		URL="https://salsa.debian.org/reproducible-builds/packages/$PKG/tree/merged/reproducible_builds"
		custom_curl $URL $TMPFILE
		if [ "$(grep "'error'>Invalid branch" $TMPFILE 2>/dev/null)" ] ; then
			if ! $OBSOLETE_IN_SID ; then