#!/bin/bash
# Copyright 2015 Holger Levsen These source packages are different from sid in our toolchain. They are available in an apt repository on alioth which is accessable with these sources.lists entries:"
write_page "deb http://reproducible.alioth.debian.org/debian/ ./"
write_page "deb-src http://reproducible.alioth.debian.org/debian/ ./"
write_page "
source package | version in our repo | version in sid | cruft in our repo (if any) | |
---|---|---|---|---|
$PKG | " VERSIONS=$(grep-dctrl -n -s version -S $PKG $TMPFILE|sort -u) CRUFT="" WARN=false BET="" for VERSION in ${VERSIONS} ; do if [ "$BET" = "" ] ; then BET=${VERSION} continue elif dpkg --compare-versions "$BET" lt "${VERSION}" ; then BET=${VERSION} fi done write_page "$BET | " SID=$(rmadison -s sid $PKG | cut -d "|" -f2|xargs echo|sed 's# #$SID | " for VERSION in ${VERSIONS} ; do if [ "${VERSION}" != "$BET" ] ; then WARN=true CRUFT="$CRUFT ${VERSION}" fi done if $WARN ; then echo "Warning: more than one version of $PKG available in our repo, please clean up." write_page "$(echo $CRUFT|sed 's# # #g') | "
else
write_page "" fi write_page " |