X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/b7675e5dac28258f2d44bb63f13381dd4f5c9ec7..7834cb579fe88a11bd3850363bbd4c77797581bb:/cmdline/indexcopy.cc diff --git a/cmdline/indexcopy.cc b/cmdline/indexcopy.cc index c8bbd754d..483aef8b1 100644 --- a/cmdline/indexcopy.cc +++ b/cmdline/indexcopy.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: indexcopy.cc,v 1.3 1999/12/10 23:40:29 jgg Exp $ +// $Id: indexcopy.cc,v 1.4 2000/01/16 05:36:17 jgg Exp $ /* ###################################################################### Index Copying - Aid for copying and verifying the index files @@ -113,7 +113,7 @@ bool IndexCopy::CopyPackages(string CDROM,string Name,vector &List) // Open the output file char S[400]; - sprintf(S,"cdrom:%s/%s%s",Name.c_str(),(*I).c_str() + CDROM.length(), + sprintf(S,"cdrom:[%s]/%s%s",Name.c_str(),(*I).c_str() + CDROM.length(), GetFileName()); string TargetF = _config->FindDir("Dir::State::lists") + "partial/"; TargetF += URItoFileName(S); @@ -231,7 +231,7 @@ bool IndexCopy::CopyPackages(string CDROM,string Name,vector &List) return _error->Errno("rename","Failed to rename"); // Copy the release file - sprintf(S,"cdrom:%s/%sRelease",Name.c_str(),(*I).c_str() + CDROM.length()); + sprintf(S,"cdrom:[%s]/%sRelease",Name.c_str(),(*I).c_str() + CDROM.length()); string TargetF = _config->FindDir("Dir::State::lists") + "partial/"; TargetF += URItoFileName(S); if (FileExists(*I + "Release") == true) @@ -386,7 +386,7 @@ void IndexCopy::ConvertToSourceList(string CD,string &Path) // Not a dists type. if (stringcmp(Path.begin(),Path.begin()+strlen("dists/"),"dists/") != 0) return; - + // Isolate the dist string::size_type Slash = strlen("dists/"); string::size_type Slash2 = Path.find('/',Slash + 1);