PET is not working properly
Joachim Breitner
nomeata at debian.org
Tue Feb 16 20:37:56 UTC 2010
Hi,
Am Dienstag, den 16.02.2010, 16:19 +0100 schrieb Joachim Breitner:
> 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 applied the following patch to the darcs patch of pet (r768). I think
this can be merged to trunk:
$ svn diff -c 768
Index: Archive.pm
===================================================================
--- Archive.pm (Revision 767)
+++ Archive.pm (Revision 768)
@@ -189,6 +189,10 @@
s/\n\s+//gm;
my($pkg) = /^package:\s*(\S+)\s*$/mi or next;
my($ver) = /^version:\s*(\S+)\s*$/mi or next;
+ # ignore old versions
+ if (exists $vers{$pkg} and deb_compare($vers{$pkg}{ver}, $ver) > 0) {
+ next
+ }
if($suite ne "unstable") {
$vers{$pkg} = { ver => $ver };
next;
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/6b5bd2e9/attachment.pgp>
More information about the PET-devel
mailing list