X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=scripts%2Fdebian%2Fupdate-bugdoctxt;h=b83e266ac00a0d07a3d2be58748488b9adf09193;hb=HEAD;hp=6c4ece0cf24c151d5f38ec4380350114cdfd4337;hpb=1eeb90f6bf381e10fcd8f0a04437883b443855d5;p=dak.git diff --git a/scripts/debian/update-bugdoctxt b/scripts/debian/update-bugdoctxt index 6c4ece0c..b83e266a 100755 --- a/scripts/debian/update-bugdoctxt +++ b/scripts/debian/update-bugdoctxt @@ -8,15 +8,15 @@ export SCRIPTVARS=/srv/ftp-master.debian.org/dak/config/debian/vars export TERM=linux destdir=$ftpdir/doc -urlbase=http://www.debian.org/Bugs/ +urlbase=https://www.debian.org/Bugs/ cd $destdir convert () { src=$1; dst=$2 rm -f .new-$dst - echo Generating $dst from http://www.debian.org/Bugs/$src ... - lynx -nolist -dump $urlbase$src | sed -e 's/^ *$//' | perl -00 -ne 'exit if /Back to the Debian Project homepage/; print unless ($.==1 || $.==2 || $.==3 || /^\s*Other BTS pages:$/m)' >.new-$dst + echo Generating $dst from https://www.debian.org/Bugs/$src ... + sudo -u dak-unpriv SSL_CERT_FILE=/etc/ssl/ca-debian/ca-certificates.crt lynx -nolist -dump $urlbase$src | sed -e 's/^ *$//' | perl -00 -ne 'exit if /Back to the Debian Project homepage/; print unless ($.==1 || $.==2 || $.==3 || /^\s*Other BTS pages:$/m)' >.new-$dst if cmp -s .new-$dst $dst ; then rm -f .new-$dst else mv -f .new-$dst $dst fi