]> git.saurik.com Git - apt.git/commitdiff
edsp: dump: support dumping into compressed file
authorDavid Kalnischkies <david@kalnischkies.de>
Wed, 27 Apr 2016 15:36:07 +0000 (17:36 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Fri, 20 May 2016 12:18:36 +0000 (14:18 +0200)
cmdline/apt-dump-solver.cc

index cb72330590c464bfccc2674fbf5c6eae2f9fb237..0de248e75861f1a5a5aa3996e0448d135af5ff46 100644 (file)
@@ -61,7 +61,7 @@ int main(int argc,const char *argv[])                                 /*{{{*/
        RemoveFile(argv[0], filename);
        FileFd input, output;
        if (input.OpenDescriptor(STDIN_FILENO, FileFd::ReadOnly) == false ||
-             output.Open(filename, FileFd::WriteOnly | FileFd::Create | FileFd::Exclusive, 0600) == false ||
+             output.Open(filename, FileFd::WriteOnly | FileFd::Create | FileFd::Exclusive, FileFd::Extension, 0600) == false ||
              CopyFile(input, output) == false || input.Close() == false || output.Close() == false)
        {
           std::ostringstream out;