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

Re: Support for version 4 watchfiles on qa webpages



On Fri, May 20, 2016 at 04:30:20PM +0200, Lucas Nussbaum wrote:
> It's fixed in UDD now. I'm not sure if
> https://qa.debian.org/cgi-bin/watch uses UDD though, but it's fixed as
> well:
> https://qa.debian.org/cgi-bin/watch?pkg=onioncircuits
> 
> So either it is using UDD behind the scenes, or someone else fixed it
> too.

It uses UDD.  Actually, that cgi queries UDD directly and prints the
whole content of the record in the upstream table:


	my $q = $dbh->prepare ("SELECT * FROM upstream WHERE source = ?");
	$q->execute ($pkg);
	my $row = $q->fetchrow_hashref;
	if ($row) {
		foreach my $key (sort keys %$row) {
			my $d = $row->{$key};
			$d = "<a href=\"$d\">$d</a>" if ($key eq "upstream_url");
			$body .= "$key: <b>$d</b><br />\n";
		}

-- 
regards,
                        Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540      .''`.
more about me:  https://mapreri.org                             : :'  :
Launchpad user: https://launchpad.net/~mapreri                  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-

Attachment: signature.asc
Description: PGP signature


Reply to: