#!/bin/bash
# Copyright 2015 Holger Levsen These source packages are different from sid in our apt repository on alioth. They are available for testing using 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 | old versions our repo (needed for reproducing old builds) |
---|---|---|---|
$PKG | " VERSIONS=$(grep-dctrl -n -s version -S $PKG $TMPFILE|sort -u) CRUFT="" WARN=false BET="" # # gather versions of a package # for VERSION in ${VERSIONS} ; do if [ "$BET" = "" ] ; then BET=${VERSION} continue elif dpkg --compare-versions "$BET" lt "${VERSION}" ; then BET=${VERSION} fi done SID=$(rmadison -s sid $PKG | cut -d "|" -f2|xargs echo) for VERSION in ${VERSIONS} ; do if [ "${VERSION}" != "$BET" ] ; then WARN=true CRUFT="$CRUFT ${VERSION}" fi done # # format output # CSID="" for i in $SID ; do if dpkg --compare-versions "$i" gt "$BET" ; then CSID="$CSID$i$BET | " write_page "$CSID | " write_page "$CRUFT | " write_page "