]> git.saurik.com Git - apt.git/commitdiff
* Patch from Koblinger Egmont <egmont@uhulinux.hu> to f...
authorArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 17:03:39 +0000 (17:03 +0000)
committerArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 17:03:39 +0000 (17:03 +0000)
Author: mdz
Date: 2003-09-10 23:39:49 GMT
* Patch from Koblinger Egmont <egmont@uhulinux.hu> to fix version
comparisons with '~' (Closes: #205960)

apt-pkg/deb/debversion.cc
debian/changelog

index e6132bea8276904a26d59f82b6324ed3fb67f4fb..aeee619296d19ee0df96eae0fd6b2b8d448ff077 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: debversion.cc,v 1.7 2003/07/18 14:13:59 mdz Exp $
+// $Id: debversion.cc,v 1.8 2003/09/10 23:39:49 mdz Exp $
 /* ######################################################################
 
    Debian Version - Versioning system for Debian
@@ -48,9 +48,15 @@ int debVersioningSystem::CmpFragment(const char *A,const char *AEnd,
    if (A >= AEnd && B >= BEnd)
       return 0;
    if (A >= AEnd)
+   {
+      if (*B == '~') return 1;
       return -1;
+   }
    if (B >= BEnd)
+   {
+      if (*A == '~') return -1;
       return 1;
+   }
 
    /* Iterate over the whole string
       What this does is to spilt the whole string into groups of
@@ -101,11 +107,17 @@ int debVersioningSystem::CmpFragment(const char *A,const char *AEnd,
 
    // lhs is shorter
    if (lhs == AEnd)
+   {
+      if (*rhs == '~') return 1;
       return -1;
+   }
 
    // rhs is shorter
    if (rhs == BEnd)
+   {
+      if (*lhs == '~') return -1;
       return 1;
+   }
 
    // Shouldnt happen
    return 1;
index 3d27e91e31964b3f676deca0bfbc9519ec677fea..b0e885bb08e5f89f58c93ac055fe07e08a59994a 100644 (file)
@@ -11,8 +11,10 @@ apt (0.5.11) unstable; urgency=low
   * Add #include <langinfo.h> to cmdline/apt-get.cc.  This apparently gets
     pulled in by something else with recent g++ and/or glibc, but is
     required when building on, e.g., stable
+  * Patch from Koblinger Egmont <egmont@uhulinux.hu> to fix version
+    comparisons with '~' (Closes: #205960)
 
- --
+ -- Matt Zimmerman <mdz@debian.org>  Wed, 10 Sep 2003 19:39:33 -0400
 
 apt (0.5.10) unstable; urgency=low