]> git.saurik.com Git - apt.git/commitdiff
* merged from Christian Perrier:
authorMichael Vogt <michael.vogt@ubuntu.com>
Fri, 20 Apr 2007 16:20:23 +0000 (18:20 +0200)
committerMichael Vogt <michael.vogt@ubuntu.com>
Fri, 20 Apr 2007 16:20:23 +0000 (18:20 +0200)
* mr.po: New Marathi translation  Closes: #416806

apt-pkg/acquire-item.cc
apt-pkg/acquire.cc
apt-pkg/acquire.h
apt-pkg/init.h
apt-pkg/makefile
apt-pkg/policy.cc
debian/changelog
doc/apt_preferences.5.xml
methods/makefile
po/gl.po

index 8ec4ba2c0b6c2b4d5fb229201e6b7e61a004d024..f566b16b803775abfb54995a1d025331b5f4f6de 100644 (file)
@@ -183,6 +183,7 @@ string pkgAcqIndex::Custom600Headers()
 
 void pkgAcqIndex::Failed(string Message,pkgAcquire::MethodConfig *Cnf)
 {
+
    // no .bz2 found, retry with .gz
    if(Desc.URI.substr(Desc.URI.size()-3) == "bz2") {
       Desc.URI = Desc.URI.substr(0,Desc.URI.size()-3) + "gz"; 
@@ -194,9 +195,15 @@ void pkgAcqIndex::Failed(string Message,pkgAcquire::MethodConfig *Cnf)
       Complete = false;
       Dequeue();
       return;
+   } 
+   
+   // on decompression failure, remove bad versions in partial/
+   if(Decompression && Erase) {
+      string s = _config->FindDir("Dir::State::lists") + "partial/";
+      s += URItoFileName(RealURI);
+      unlink(s.c_str());
    }
 
-   
    Item::Failed(Message,Cnf);
 }
 
index fff1b2b6ad379b28603de987933b4523dc5c3f36..e1dccf25ab1372b347b004f313403691c7dfbb8a 100644 (file)
@@ -193,9 +193,9 @@ void pkgAcquire::Enqueue(ItemDesc &Item)
    Item.Owner->Status = Item::StatIdle;
    
    // Queue it into the named queue
-   I->Enqueue(Item);
-   ToFetch++;
-         
+   if(I->Enqueue(Item)) 
+      ToFetch++;
+            
    // Some trace stuff
    if (Debug == true)
    {
@@ -549,11 +549,17 @@ pkgAcquire::Queue::~Queue()
 // Queue::Enqueue - Queue an item to the queue                         /*{{{*/
 // ---------------------------------------------------------------------
 /* */
-void pkgAcquire::Queue::Enqueue(ItemDesc &Item)
+bool pkgAcquire::Queue::Enqueue(ItemDesc &Item)
 {
    QItem **I = &Items;
-   for (; *I != 0; I = &(*I)->Next);
-   
+   // move to the end of the queue and check for duplicates here
+   for (; *I != 0; I = &(*I)->Next)
+      if (Item.URI == (*I)->URI) 
+      {
+        Item.Owner->Status = Item::StatDone;
+        return false;
+      }
+
    // Create a new item
    QItem *Itm = new QItem;
    *Itm = Item;
@@ -563,6 +569,7 @@ void pkgAcquire::Queue::Enqueue(ItemDesc &Item)
    Item.Owner->QueueCounter++;   
    if (Items->Next == 0)
       Cycle();
+   return true;
 }
                                                                        /*}}}*/
 // Queue::Dequeue - Remove an item from the queue                      /*{{{*/
index 27bb3d363a985b588c5d199d8c15371d919590eb..1d5daf12e5b56afc61051251eda3d0f4215b5a07 100644 (file)
@@ -173,7 +173,7 @@ class pkgAcquire::Queue
    public:
    
    // Put an item into this queue
-   void Enqueue(ItemDesc &Item);
+   bool Enqueue(ItemDesc &Item);
    bool Dequeue(Item *Owner);
 
    // Find a Queued item
index 8255b406a6bd65d694ef7cdd68d2adda2ad6b54b..b584b2cce3ad3bd4454753a1163b8f9427209fe3 100644 (file)
@@ -18,7 +18,7 @@
 
 // See the makefile
 #define APT_PKG_MAJOR 3
-#define APT_PKG_MINOR 11
+#define APT_PKG_MINOR 12
 #define APT_PKG_RELEASE 0
     
 extern const char *pkgVersion;
index 7e5feae53b4b11082c1d3973bab0772c5ce7085d..c493d3dd9c66589d48a02754cf0659de8f19e922 100644 (file)
@@ -13,7 +13,7 @@ include ../buildlib/defaults.mak
 # methods/makefile - FIXME
 LIBRARY=apt-pkg
 LIBEXT=$(GLIBC_VER)$(LIBSTDCPP_VER)
-MAJOR=3.11
+MAJOR=3.12
 MINOR=0
 SLIBS=$(PTHREADLIB) $(INTLLIBS)
 APT_DOMAIN:=libapt-pkg$(MAJOR)
index d8b8825c2400654ebc03d045a706683b3c2bf016..35a50425b7a45017cc8144aca76e25d6a1bdd014 100644 (file)
@@ -36,6 +36,7 @@
 #include <apti18n.h>
 
 #include <iostream>
+#include <sstream>
                                                                        /*}}}*/
 
 using namespace std;
@@ -300,7 +301,13 @@ bool ReadPinFile(pkgPolicy &Plcy,string File)
          continue;
       }
 
-      Plcy.CreatePin(Type,Name,string(Word,End),priority);
+      istringstream s(Name);
+      string pkg;
+      while(!s.eof())
+      {
+        s >> pkg;
+         Plcy.CreatePin(Type, pkg, string(Word,End),priority);
+      };
    }
 
    Plcy.InitDefaults();
index a2daa2d3a41c6495b710be0e339c274d68df2872..1fd4922b66c6f42fb634800ca8d9a0f218b8b4d5 100644 (file)
@@ -1,4 +1,4 @@
-apt (0.6.46.5) UNRELEASED; urgency=low
+apt (0.6.47) UNRELEASED; urgency=low
 
   * apt-pkg/algorithm.cc:
     - use clog for all debugging
@@ -14,7 +14,28 @@ apt (0.6.46.5) UNRELEASED; urgency=low
     - only unmount if APT::CDROM::NoMount is false
   * methods/cdrom.cc:  
     - only umount if it was mounted by the method before
-
+  * po/gl.po:
+    - fix error translation that causes trouble to lsb_release
+  * apt-pkg/acquire-item.cc:
+    - if decompression of a index fails, delete the index 
+  * [ABI] apt-pkg/acquire.{cc,h}:
+    - deal better with duplicated sources.list entries (avoid
+      double queuing of  URLs) - this fixes hangs in bzip/gzip
+  * apt-pkg/policy.cc:
+    - allow multiple packages (thanks to David Foerster)
+  * merged from Christian Perrier:
+       * mr.po: New Marathi translation  Closes: #416806
+       * zh_CN.po: Updated by Eric Pareja  Closes: #416822
+       * tl.po: Updated by Eric Pareja   Closes: #416638
+       * gl.po: Updated by Jacobo Tarrio
+                Closes: #412828
+       * da.po: Updated by Claus Hindsgaul
+                Closes: #409483
+       * fr.po: Remove a non-breakable space for usability
+                issues. Closes: #408877
+       * ru.po: Updated Russian translation. Closes: #405476
+       * *.po: Unfuzzy after upstream typo corrections
+  
  -- Michael Vogt <michael.vogt@ubuntu.com>  Mon, 18 Dec 2006 19:39:05 +0100
 
 apt (0.6.46.4) unstable; urgency=high
index 3e50bef8c1696c1a07aad1344b196d95b33fbc96..175339f5a1775b95288d0f0adce39569e62770ea 100644 (file)
@@ -143,10 +143,11 @@ separated by blank lines.  Records can have one of two forms, a specific form
 and a general form.
 <itemizedlist>
 <listitem>
-<simpara>The specific form assigns a priority (a "Pin-Priority") to a
-specified package and specified version or version range.  For example,
+<simpara>The specific form assigns a priority (a "Pin-Priority") to one or more
+specified packages and specified version or version range.  For example,
 the following record assigns a high priority to all versions of
-the <filename>perl</filename> package whose version number begins with "<literal>5.8</literal>".</simpara>
+the <filename>perl</filename> package whose version number begins with "<literal>5.8</literal>".
+Multiple packages can be separated by spaces.</simpara>
 
 <programlisting>
 Package: perl
index 1e3b1ef850b128f8fd97ec77c7442cced44a0e34..3f561a2c3a5e99ae53b4fdabbdb23b1b3d0ccd40 100644 (file)
@@ -7,7 +7,7 @@ include ../buildlib/defaults.mak
 BIN := $(BIN)/methods
 
 # FIXME..
-LIB_APT_PKG_MAJOR = 3.11
+LIB_APT_PKG_MAJOR = 3.12
 APT_DOMAIN := libapt-pkg$(LIB_APT_PKG_MAJOR)
 
 # The file method
index 40f269baac82f2538af1bf4758d08690a0d65f88..bff17bd98faac9c69d055f992506fd805a340f47 100644 (file)
--- a/po/gl.po
+++ b/po/gl.po
@@ -108,7 +108,7 @@ msgstr ""
 #: cmdline/apt-cache.cc:1470
 #, c-format
 msgid "%4i %s\n"
-msgstr "[%4i] %s\n"
+msgstr "%4i %s\n"
 
 #. Show any packages have explicit pins
 #: cmdline/apt-cache.cc:1482