Control: tags -1 moreinfo

Hi,

On Fri, Jan 02, 2015 at 08:59:16PM +0000, Sandro Tosi wrote:
> Please unblock package reportbug

> -        if online:
> -            if tag == 'wheezy-pu':
> -                version = checkversions.get_versions_available(package, 
> timeout, 'wheezy').values()[0]
> -            elif tag == 'squeeze-pu':
> -                version = checkversions.get_versions_available(package, 
> timeout, 'squeeze').values()[0]
> +        if online and tag.endswith('-pu'):
> +            version = checkversions.get_versions_available(package, timeout, 
> tag[:-3]).values()[0]

This doesn't actually seem to be correct. The url that gets checked is this
one:

http://qa.debian.org/madison.php?package=reportbug&text=on&s=j,e,s,s,i,e&a=source,all,amd64

This return all versions, and a random one is picked.

It seems to work like this:

version = checkversions.get_versions_available(package, timeout, 
(tag[:-3],)).values()[0]

This isn't actually a regression (it doesn't work in the current version), but
it might be nice to fix it.

Cheers,

Ivo


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: https://lists.debian.org/[email protected]

Reply via email to