]> git.saurik.com Git - apt.git/blobdiff - methods/copy.cc
disable timestamps in the footer of docs by doxygen
[apt.git] / methods / copy.cc
index 5570f31c80f467d2416359f3b4ca55efd568dd6e..b78053d364724bba2030206a1e417be4eee4b068 100644 (file)
@@ -55,8 +55,8 @@ void CopyMethod::CalculateHashes(FetchResult &Res)
 /* */
 bool CopyMethod::Fetch(FetchItem *Itm)
 {
-   URI Get = Itm->Uri;
-   std::string File = Get.Path;
+   // this ensures that relative paths work in copy
+   std::string File = Itm->Uri.substr(Itm->Uri.find(':')+1);
 
    // Stat the file and send a start message
    struct stat Buf;