]> git.saurik.com Git - apt.git/blobdiff - apt-inst/contrib/extracttar.h
* make apt-get source smarter about not downloading the same sources twice
[apt.git] / apt-inst / contrib / extracttar.h
index aaca987f279f72430448076bec0f4423a7be4c6c..6daf00a275f4793dccce69015b74fcc2d6beb8c3 100644 (file)
 #include <apt-pkg/fileutl.h>
 #include <apt-pkg/dirstream.h>
 
+#include <algorithm>
+
+using std::min;
+
 class ExtractTar
 {
    protected:
@@ -38,6 +42,7 @@ class ExtractTar
    int GZPid;
    FileFd InFd;
    bool Eof;
+   string DecompressProg;
    
    // Fork and reap gzip
    bool StartGzip();
@@ -47,7 +52,7 @@ class ExtractTar
 
    bool Go(pkgDirStream &Stream);
    
-   ExtractTar(FileFd &Fd,unsigned long Max);
+   ExtractTar(FileFd &Fd,unsigned long Max,string DecompressionProgram);
    virtual ~ExtractTar();
 };