diff options
author | David Kalnischkies <david@kalnischkies.de> | 2015-09-10 18:46:05 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2015-09-14 15:22:18 +0200 |
commit | 7f58427b9584686f80cd5eccfdd02c1ace75518a (patch) | |
tree | f6ff664b84dc92a77f3ae6480a2e9c781060929d /apt-pkg/indexfile.cc | |
parent | 8597ee543a7d1d61450542c61512295f9da4fec4 (diff) |
use a less generic special trigger filename for stdin
Git-Dch: Ignore
Diffstat (limited to 'apt-pkg/indexfile.cc')
-rw-r--r-- | apt-pkg/indexfile.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apt-pkg/indexfile.cc b/apt-pkg/indexfile.cc index db57faf07..c3c0e74ae 100644 --- a/apt-pkg/indexfile.cc +++ b/apt-pkg/indexfile.cc @@ -267,9 +267,13 @@ std::string pkgDebianIndexTargetFile::GetProgressDescription() const return Target.Description; } -pkgDebianIndexRealFile::pkgDebianIndexRealFile(std::string const &File, bool const Trusted) :/*{{{*/ - pkgDebianIndexFile(Trusted), d(NULL), File(flAbsPath(File)) +pkgDebianIndexRealFile::pkgDebianIndexRealFile(std::string const &pFile, bool const Trusted) :/*{{{*/ + pkgDebianIndexFile(Trusted), d(NULL) { + if (pFile == "/nonexistent/stdin") + File = pFile; + else + File = flAbsPath(pFile); } /*}}}*/ // IndexRealFile::Size - Return the size of the index /*{{{*/ |