X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=scripts%2Fdebian%2Fupdate-bugdoctxt;h=b83e266ac00a0d07a3d2be58748488b9adf09193;hb=2f03955b56fa89c67a9d45af6543b82adb4b1f41;hp=d5e6416ae8a2e2f6f4e82ade409ed81eefa125ac;hpb=2a10967af5974e4fa513d029fb995e122d90501a;p=dak.git diff --git a/scripts/debian/update-bugdoctxt b/scripts/debian/update-bugdoctxt index d5e6416a..b83e266a 100755 --- a/scripts/debian/update-bugdoctxt +++ b/scripts/debian/update-bugdoctxt @@ -16,7 +16,7 @@ convert () { src=$1; dst=$2 rm -f .new-$dst echo Generating $dst from https://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 + 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