[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1074038: /usr/bin/who-uploads: who-uploads fetches accepted information from packages.qa.debian.org/$pefix/$package.html which does not get updates after lifts.debian.org upgrade



On Mon, Dec 23, 2024 at 09:44:45PM +0100, gregor herrmann wrote:
> Here's a patch to use tracker.d.o

thanks!
 
> (Admittedly the date parsing is not very elegant.)

yes, probably but...

>  	if [ "$WANT_DATE" = "yes" ]; then
> -	    DATE=$(echo "$HTML_TEXT" |  sed -ne 's%<li><em>Date</em>: \(.*\)</li>%\1%p')
> +	    DATE=$(echo "$HTML_TEXT" | xargs | perl -ne 'print $1 if m%<li><b>Date</b>: (.+) </li>%;')
>  	fi

how much harm can be done? I'd tend to accept this, what do others think?


-- 
cheers,
	Holger

 ⢀⣴⠾⠻⢶⣦⠀
 ⣾⠁⢠⠒⠀⣿⡁  holger@(debian|reproducible-builds|layer-acht).org
 ⢿⡄⠘⠷⠚⠋⠀  OpenPGP: B8BF54137B09D35CF026FE9D 091AB856069AAA1C
 ⠈⠳⣄

Wir können aus der Erde keinen Himmel machen, aber jeder von uns kann etwas
tun, dass sie nicht zur Hölle wird.
(Fritz Bauer, hessischer Generalstaatsanwalt)

Attachment: signature.asc
Description: PGP signature


Reply to: