diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:51:45 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:51:45 +0000 |
commit | 3b7525a6014be89a1edc90bfc8e801d51bd408a7 (patch) | |
tree | 0fd3cc6f5f77514e4510588093725da4b162e8a6 /cmdline | |
parent | 179ce12ba98a270cf5f7c2051555c92926358528 (diff) |
Tada
Author: jgg
Date: 1998-11-28 08:39:46 GMT
Tada
Diffstat (limited to 'cmdline')
-rw-r--r-- | cmdline/apt-cdrom.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cmdline/apt-cdrom.cc b/cmdline/apt-cdrom.cc index d524cc0e6..fc9eb5000 100644 --- a/cmdline/apt-cdrom.cc +++ b/cmdline/apt-cdrom.cc @@ -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 { |