PET is not working properly

Joachim Breitner nomeata at debian.org
Tue Feb 16 15:19:10 UTC 2010


Hi,

Am Dienstag, den 16.02.2010, 12:26 -0200 schrieb Marco Túlio Gontijo e
Silva:
> I noticed that PET is not showing the most recent version in the Archive
> column.  For example, the most recent version of gtk2hs in sid is 0.10.1-4, but
> PET is showing 0.9.13-5.  Notice that this version, and 0.10.1-3, are also
> available in Sources.gz, I don't know why.  It seems that it's gettings the
> last version in the file.

This could be change in the archive handling, it seems to retain all
versions in the sources where there is a binary version for (which makes
sense).

> I don't know much perl and I don't know much about PET, but I think something
> like this may fix the issue:
> 
> --- Archive.pm~ 2010-02-16 11:36:57.000000000 -0200
> +++ Archive.pm  2010-02-16 12:25:09.000000000 -0200
> @@ -203,6 +203,7 @@
>              @b_d_i = split(/\s*,\s*/, $b_d_i) if($b_d_i);
>              @maint = split(/\s*,\s*/, $maint) if($maint);
>              @upldr = split(/\s*,\s*/, $upldr) if($upldr);
> +            $ver = $vers{$pkg}{ver} if deb_compare $vers{$pkg}{ver}, $ver > 0;
>              $vers{$pkg} = {
>                  ver => $ver,
>                  b_d => \@b_d,

I’m replying to the pet-devel list, maybe one of the PET developers can
comment on this.

Greetings,
Joachim

-- 
Joachim "nomeata" Breitner
Debian Developer
  nomeata at debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C
  JID: nomeata at joachim-breitner.de | http://people.debian.org/~nomeata
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://lists.alioth.debian.org/pipermail/pet-devel/attachments/20100216/f928cdb1/attachment.pgp>


More information about the PET-devel mailing list