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

Re: PET is not working properly



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@debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C
  JID: nomeata@joachim-breitner.de | http://people.debian.org/~nomeata

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


Reply to: