]> git.saurik.com Git - apt.git/blobdiff - ftparchive/multicompress.cc
move fd duplication closer to the gz/bz2 open calls
[apt.git] / ftparchive / multicompress.cc
index c1bd6037a926e61decc488e253fe01fd52f5d17c..f35d5304a1edc7d0b45050498cb809a981c8f75e 100644 (file)
 #include <apt-pkg/strutl.h>
 #include <apt-pkg/error.h>
 #include <apt-pkg/md5.h>
+#include <apt-pkg/aptconfiguration.h>
+#include <apt-pkg/hashsum_template.h>
 
-#include <fcntl.h>
+#include <ctype.h>
+#include <vector>
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <sys/time.h>
 #include <unistd.h>
-#include <iostream>
 
 #include "multicompress.h"
 #include <apti18n.h>
@@ -237,7 +240,7 @@ bool MultiCompress::Finalize(unsigned long long &OutSize)
         if (UpdateMTime > 0 &&
             (Now - St.st_mtime > (signed)UpdateMTime || St.st_mtime > Now))
         {
-           utimensat(AT_FDCWD, I->Output.c_str(), NULL, AT_SYMLINK_NOFOLLOW);
+           utimes(I->Output.c_str(), NULL);
            Changed = true;
         }
       }