소스 검색

use flAbsPath()

Michael Vogt 12 년 전
부모
커밋
fb11075f49
1개의 변경된 파일과 1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      apt-pkg/deb/debindexfile.cc

+ 1 - 2
apt-pkg/deb/debindexfile.cc

@@ -673,8 +673,7 @@ APT_CONST bool debStatusIndex::Exists() const
 debDebPkgFileIndex::debDebPkgFileIndex(std::string DebFile)
 debDebPkgFileIndex::debDebPkgFileIndex(std::string DebFile)
    : pkgIndexFile(true), DebFile(DebFile)
    : pkgIndexFile(true), DebFile(DebFile)
 {
 {
-   // FIXME: we need to os.normpath(DebFile) here, this is a lame workaround
-   DebFileFullPath = SafeGetCWD() + DebFile;
+   DebFileFullPath = flAbsPath(DebFile);
 }
 }
 
 
 std::string debDebPkgFileIndex::ArchiveURI(std::string /*File*/) const
 std::string debDebPkgFileIndex::ArchiveURI(std::string /*File*/) const