Skip to content
......@@ -38,13 +38,13 @@ ARCH="amd64"
SUITE="unstable"
echo "$(date -u) - starting to write $PAGE page. Downloading Sources and Packages files from our repository."
write_page_header $VIEW "Comparison between the reproducible builds apt repository and regular Debian suites"
write_page "<p>These source packages (and their binaries packages) are different from unstable in our apt repository on alioth. They are available for <a href=\"https://wiki.debian.org/ReproducibleBuilds/ExperimentalToolchain#Usage_example\">testing using these sources.lists</a> entries:<pre>"
write_page "deb http://reproducible.alioth.debian.org/debian/ ./"
write_page "deb-src http://reproducible.alioth.debian.org/debian/ ./"
write_page "<p>These source packages (and their binaries packages) are different from unstable in our experimental apt repository. They are available for <a href=\"https://wiki.debian.org/ReproducibleBuilds/ExperimentalToolchain#Usage_example\">testing using these sources.lists</a> entries:<pre>"
write_page "deb https://tests.reproducible-builds.org/debian/repository/debian/ ./"
write_page "deb-src https://tests.reproducible-builds.org/debian/repository/debian/ ./"
write_page "</pre></p>"
custom_curl http://reproducible.alioth.debian.org/debian/Sources $SOURCES
custom_curl http://reproducible.alioth.debian.org/debian/Packages $PACKAGES
custom_curl https://tests.reproducible-builds.org/debian/repository/debian/Sources $SOURCES
custom_curl https://tests.reproducible-builds.org/debian/repository/debian/Packages $PACKAGES
SOURCEPKGS=$(grep-dctrl -n -s Package -r -FPackage . $SOURCES | sort -u)
echo
......
......@@ -539,7 +539,7 @@ for h in common common-amd64 common-i386 common-arm64 common-armhf "$HOSTNAME" ;
esac
if [ -d "hosts/$h/etc/sudoers.d/" ]; then
for f in "hosts/$h/etc/sudoers.d/"* ; do
/usr/sbin/visudo -c -f "$f"
/usr/sbin/visudo -c -f "$f" > /dev/null
done
fi
for d in etc usr ; do
......@@ -675,26 +675,18 @@ if [ "$HOSTNAME" = "jenkins" ] || [ "$HOSTNAME" = "jenkins-test-vm" ] ; then
#
cd /srv/jenkins/job-cfg
for metaconfig in *.yaml.py ; do
# there are both python2 and python3 scripts here
[ -e ./$metaconfig ] || continue
./$metaconfig > $TMPFILE
if ! sudo -u jenkins-adm cmp -s ${metaconfig%.py} - < $TMPFILE ; then
sudo -u jenkins-adm tee ${metaconfig%.py} > /dev/null < $TMPFILE
# regen the file only if the .py is newer than the generated file
if [ ! -f "${metaconfig%.py}" ] && [ "$metaconfig" -nt "${metaconfig%.py}" ]; then
sudo -u jenkins-adm "./$metaconfig" > "$TMPFILE"
sudo -u jenkins-adm mv "$TMPFILE" "${metaconfig%.py}"
fi
done
rm -f $TMPFILE
for config in *.yaml ; do
# do update, if
# no stamp file exist or
# no .py file exists and config is newer than stamp or
# a .py file exists and .py file is newer than stamp
if [ ! -f $STAMP ] || \
( [ ! -f $config.py ] && [ $config -nt $STAMP ] ) || \
( [ -f $config.py ] && [ $config.py -nt $STAMP ] ) ; then
# do update, if no stamp file exist or config is newer than stamp
if [ ! -f $STAMP ] || [ $config -nt $STAMP ] ; then
echo "$config has changed, executing updates."
$JJB update $config
else
echo "$config has not changed, nothing to do."
fi
done
explain "jenkins jobs updated."
......