]> git.saurik.com Git - apt.git/commitdiff
Tada
authorArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:51:45 +0000 (16:51 +0000)
committerArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:51:45 +0000 (16:51 +0000)
Author: jgg
Date: 1998-11-28 08:39:46 GMT
Tada

cmdline/apt-cdrom.cc

index d524cc0e6da8b133735d9b20d40a019e6a597075..fc9eb50005ad442ea43d8e5b614a88562c8304eb 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: apt-cdrom.cc,v 1.4 1998/11/28 03:54:34 jgg Exp $
+// $Id: apt-cdrom.cc,v 1.5 1998/11/28 08:39:46 jgg Exp $
 /* ######################################################################
    
    APT CDROM - Tool for handling APT's CDROM database.
@@ -349,6 +349,8 @@ void ConvertToSourceList(string CD,string &Path)
    
    // Strip the cdrom base path
    Path = string(Path,CD.length());
+   if (Path.empty() == true)
+      Path = "/";
    
    // Too short to be a dists/ type
    if (Path.length() < strlen("dists/"))
@@ -612,7 +614,8 @@ bool CopyPackages(string CDROM,string Name,vector<string> &List)
                  if (Target.Write(Start,Stop-Start) == false)
                     return false;                
            }
-           
+           if (Target.Write("\n",1) == false)
+              return false;
         }
         else
         {