X-Git-Url: http://gitweb/?a=blobdiff_plain;f=pkgutil.h;h=7dee8e654226da65aeb1a1b9e847bd61c0f67c04;hb=c6f15699aa06f450985c3d67441bfb7250c65e57;hp=98069002c203ccd51a480fcd94f271baece1ea23;hpb=9ac667e68d3e36eb99272eac57219002ee2318e6;p=pkgutils-cross.git

diff --git a/pkgutil.h b/pkgutil.h
index 9806900..7dee8e6 100644
--- a/pkgutil.h
+++ b/pkgutil.h
@@ -2,6 +2,7 @@
 //  pkgutils
 // 
 //  Copyright (c) 2000-2005 Per Liden
+//  Copyright (c) 2006-2013 by CRUX team (http://crux.nu)
 // 
 //  This program is free software; you can redistribute it and/or modify
 //  it under the terms of the GNU General Public License as published by
@@ -32,7 +33,7 @@
 #include <sys/types.h>
 #include <dirent.h>
 
-#define PKG_EXT         ".pkg.tar.gz"
+#define PKG_EXT         ".pkg.tar."
 #define PKG_DIR         "var/lib/pkg"
 #define PKG_DB          "var/lib/pkg/db"
 #define PKG_REJECTED    "var/lib/pkg/rejected"
@@ -70,7 +71,7 @@ protected:
 
 	// Tar.gz
 	pair<string, pkginfo_t> pkg_open(const string& filename) const;
-	void pkg_install(const string& filename, const set<string>& keep_list) const;
+	void pkg_install(const string& filename, const set<string>& keep_list, const set<string>& non_install_files) const;
 	void pkg_footprint(string& filename) const;
 	void ldconfig() const;
 
@@ -91,13 +92,14 @@ class runtime_error_with_errno : public runtime_error {
 public:
 	explicit runtime_error_with_errno(const string& msg) throw()
 		: runtime_error(msg + string(": ") + strerror(errno)) {}
+	explicit runtime_error_with_errno(const string& msg, int e) throw()
+		: runtime_error(msg + string(": ") + strerror(e)) {}
 };
 
 // Utility functions
 void assert_argument(char** argv, int argc, int index);
 string itos(unsigned int value);
 string mtos(mode_t mode);
-int unistd_gzopen(char* pathname, int flags, mode_t mode);
 string trim_filename(const string& filename);
 bool file_exists(const string& filename);
 bool file_empty(const string& filename);