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

Bug#205960: Patch



Hi,

This patch seems to work for me.


bye,
Egmont
diff -urN apt-0.5.9.orig/apt-pkg/deb/debversion.cc apt-0.5.9/apt-pkg/deb/debversion.cc
--- apt-0.5.9.orig/apt-pkg/deb/debversion.cc	2003-07-18 16:13:59.000000000 +0200
+++ apt-0.5.9/apt-pkg/deb/debversion.cc	2003-09-01 23:34:23.000000000 +0200
@@ -48,9 +48,15 @@
    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 @@
 
    // 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;

Reply to: