[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 Wed, 25 Dec 2024 12:41:30 +0000, Holger Levsen wrote:

On Mon, Dec 23, 2024 at 09:44:45PM +0100, gregor herrmann wrote:
(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?

Friendly ping.

I'm using this patch for 3.5 months, and I haven't seen any problems so far.

I'd be happy if someone merged this change (so I don't have to carry my local patch :)) in order to make who-uploads useable again.


Cheers,
gregor

--
 .''`.  https://info.comodo.priv.at -- Debian Developer https://www.debian.org
 : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D  85FA BB3A 6801 8649 AA06
 `. `'  Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe
`-

Attachment: signature.asc
Description: Digital Signature


Reply to: