]> git.saurik.com Git - apt.git/commitdiff
* don't explod if a Provides has DepCompareOp
authorMichael Vogt <michael.vogt@ubuntu.com>
Thu, 19 Jan 2006 10:37:57 +0000 (10:37 +0000)
committerMichael Vogt <michael.vogt@ubuntu.com>
Thu, 19 Jan 2006 10:37:57 +0000 (10:37 +0000)
apt-pkg/deb/deblistparser.cc
debian/changelog

index b11d2531c9784d80923c428001fdb05035d6fb8a..d0dc7a26038df7f222b94361458b3a6ef5a2cb54 100644 (file)
@@ -504,11 +504,12 @@ bool debListParser::ParseProvides(pkgCache::VerIterator Ver)
       Start = ParseDepends(Start,Stop,Package,Version,Op);
       if (Start == 0)
         return _error->Error("Problem parsing Provides line");
-      if (Op != pkgCache::Dep::NoOp)
-        return _error->Error("Malformed provides line");
-
-      if (NewProvides(Ver,Package,Version) == false)
-        return false;
+      if (Op != pkgCache::Dep::NoOp) {
+        _error->Warning("Ignoring Provides line with DepCompareOp for package %s", Package.c_str());
+      } else {
+        if (NewProvides(Ver,Package,Version) == false)
+           return false;
+      }
 
       if (Start == Stop)
         break;
index 3c3fbb4a9d8589dbdab28fb58ff802c64f8c2836..b71fe095a5632c5e92133e2635fad8ae090111aa 100644 (file)
@@ -1,3 +1,11 @@
+apt (0.6.43.3) unstable; urgency=low
+
+  * apt-pkg/deb/deblistparser.cc:
+    - don't explode on a DepCompareOp in a Provides line, but warn about
+      it and ignore it otherwise (thanks to James Troup for reporting it)
+
+ -- Michael Vogt <michael.vogt@ubuntu.com>  Thu, 19 Jan 2006 01:05:52 +0100
+
 apt (0.6.43.2) unstable; urgency=low
 
   * Merge bubulle@debian.org--2005/apt--main--0 up to patch-166: