Explorar el Código

* apt-inst/contrib/arfile.cc:
- support members ending with '/' as well (thanks to Michal Cihr,
closes: #500988)

Michael Vogt hace 17 años
padre
commit
6f388ec398
Se han modificado 2 ficheros con 4 adiciones y 1 borrados
  1. 1 1
      apt-inst/contrib/arfile.cc
  2. 3 0
      debian/changelog

+ 1 - 1
apt-inst/contrib/arfile.cc

@@ -111,7 +111,7 @@ bool ARArchive::LoadHeaders()
       else
       {
 	 unsigned int I = sizeof(Head.Name) - 1;
-	 for (; Head.Name[I] == ' '; I--);
+	 for (; Head.Name[I] == ' ' || Head.Name[I] == '/'; I--);
 	 Memb->Name = string(Head.Name,I+1);
       }
 

+ 3 - 0
debian/changelog

@@ -20,6 +20,9 @@ apt (0.7.20) unstable; urgency=low
     This is controlled via the value of
     APT::Get::Build-Dep-Automatic and is set "false" by default.  
     Thanks to Aaron Haviland, closes: #448743
+  * apt-inst/contrib/arfile.cc:
+    - support members ending with '/' as well (thanks to Michal Cihr,
+      closes: #500988)
 
   [ Christian Perrier ]
   * Translations: