]> git.saurik.com Git - apt-legacy.git/blobdiff - apt-inst/contrib/arfile.cc
I am sick of that Package: error.
[apt-legacy.git] / apt-inst / contrib / arfile.cc
index 54d90bf3a7c212bab9809b193433a304f3a3602b..7c85f2e866282cf52ae9fcb0a9472348bf3825f8 100644 (file)
@@ -14,9 +14,6 @@
    ##################################################################### */
                                                                        /*}}}*/
 // Include Files                                                       /*{{{*/
-#ifdef __GNUG__
-#pragma implementation "apt-pkg/arfile.h"
-#endif
 #include <apt-pkg/arfile.h>
 #include <apt-pkg/strutl.h>
 #include <apt-pkg/error.h>
@@ -114,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);
       }