Michael Vogt лет назад: 19
Родитель
Сommit
098d7904ec
4 измененных файлов с 15 добавлено и 3 удалено
  1. 5 0
      apt-pkg/algorithms.cc
  2. 1 1
      apt-pkg/deb/debrecords.cc
  3. 7 1
      debian/changelog
  4. 2 1
      methods/http.cc

+ 5 - 0
apt-pkg/algorithms.cc

@@ -861,7 +861,12 @@ bool pkgProblemResolver::Resolve(bool BrokenFix)
 	       OldEnd = LEnd;
 	       OldEnd = LEnd;
 	    }
 	    }
 	    else
 	    else
+            {
 	       Start++;
 	       Start++;
+	       // We only worry about critical deps.
+	       if (Start.IsCritical() != true)
+                  continue;
+            }
 
 
 	    // Dep is ok
 	    // Dep is ok
 	    if ((Cache[End] & pkgDepCache::DepGInstall) == pkgDepCache::DepGInstall)
 	    if ((Cache[End] & pkgDepCache::DepGInstall) == pkgDepCache::DepGInstall)

+ 1 - 1
apt-pkg/deb/debrecords.cc

@@ -67,7 +67,7 @@ string debRecordParser::MD5Hash()
 /* */
 /* */
 string debRecordParser::SHA1Hash()
 string debRecordParser::SHA1Hash()
 {
 {
-   return Section.FindS("SHA1Sum");
+   return Section.FindS("SHA1");
 }
 }
 									/*}}}*/
 									/*}}}*/
 // RecordParser::Maintainer - Return the maintainer email		/*{{{*/
 // RecordParser::Maintainer - Return the maintainer email		/*{{{*/

+ 7 - 1
debian/changelog

@@ -9,7 +9,13 @@ apt (0.6.46.4ubuntu4) feisty; urgency=low
   
   
   * apt-pkg/algorithms.cc:
   * apt-pkg/algorithms.cc:
     - only increase the score of installed applications if they 
     - only increase the score of installed applications if they 
-      are not obsolete (lp: #63680)
+      are not obsolete 
+    - fix resolver bug on removal triggered by weak-dependencies 
+      with or-groups
+  * methods/http.cc:
+    - send apt version in User-Agent
+  * apt-pkg/deb/debrecords.cc:
+    - fix SHA1Hash() return value
 
 
  -- Michael Vogt <michael.vogt@ubuntu.com>  Mon, 18 Dec 2006 19:39:05 +0100
  -- Michael Vogt <michael.vogt@ubuntu.com>  Mon, 18 Dec 2006 19:39:05 +0100
 
 

+ 2 - 1
methods/http.cc

@@ -44,6 +44,7 @@
 // Internet stuff
 // Internet stuff
 #include <netdb.h>
 #include <netdb.h>
 
 
+#include "config.h"
 #include "connect.h"
 #include "connect.h"
 #include "rfc2553emu.h"
 #include "rfc2553emu.h"
 #include "http.h"
 #include "http.h"
@@ -714,7 +715,7 @@ void HttpMethod::SendReq(FetchItem *Itm,CircleBuf &Out)
       Req += string("Authorization: Basic ") + 
       Req += string("Authorization: Basic ") + 
           Base64Encode(Uri.User + ":" + Uri.Password) + "\r\n";
           Base64Encode(Uri.User + ":" + Uri.Password) + "\r\n";
    
    
-   Req += "User-Agent: Ubuntu APT-HTTP/1.3\r\n\r\n";
+   Req += "User-Agent: Ubuntu APT-HTTP/1.3 ("VERSION")\r\n\r\n";
    
    
    if (Debug == true)
    if (Debug == true)
       cerr << Req << endl;
       cerr << Req << endl;