]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/deb/deblistparser.cc
initial Breaks implementation
[apt.git] / apt-pkg / deb / deblistparser.cc
index c2b26b5eb5322a8f4543a89bea742bf65004ef6c..074abea6d0ae76f5ccc4ff37ae0ede852cad91ba 100644 (file)
@@ -105,6 +105,8 @@ bool debListParser::NewVersion(pkgCache::VerIterator Ver)
       return false;
    if (ParseDepends(Ver,"Conflicts",pkgCache::Dep::Conflicts) == false)
       return false;
+   if (ParseDepends(Ver,"Breaks",pkgCache::Dep::DpkgBreaks) == false)
+      return false;
    if (ParseDepends(Ver,"Replaces",pkgCache::Dep::Replaces) == false)
       return false;
 
@@ -193,6 +195,7 @@ unsigned short debListParser::VersionHash()
 //                            "Suggests",
 //                            "Recommends",
                             "Conflicts",
+                            "Breaks",
                             "Replaces",0};
    unsigned long Result = INIT_FCS;
    char S[1024];