[sabayon] Remove python 2.6 dependency



commit 939843862645868866f14202b0e9078dd19e406d
Author: Scott Balneaves <sbalneav ltsp org>
Date:   Tue Feb 23 21:02:54 2010 -0600

    Remove python 2.6 dependency

 configure.ac   |    2 +-
 lib/storage.py |    8 ++++++--
 2 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 5243af8..ef00e94 100644
--- a/configure.ac
+++ b/configure.ac
@@ -19,7 +19,7 @@ AC_ISC_POSIX
 AC_HEADER_STDC
 
 AM_PROG_LIBTOOL
-AM_PATH_PYTHON([2.6])
+AM_PATH_PYTHON
 IT_PROG_INTLTOOL([0.40.0])
 GNOME_DOC_INIT([0.17.3])
 AC_PROG_LN_S
diff --git a/lib/storage.py b/lib/storage.py
index 49718ac..2b5f6f0 100755
--- a/lib/storage.py
+++ b/lib/storage.py
@@ -303,7 +303,9 @@ class ProfileStorage:
                 if not os.path.exists (dest_dir):
                     os.makedirs (dest_dir)
 
-                zip.extract(f, dir)
+                # Python 2.6 dependency
+                # zip.extract(f, dir)
+                file (dest_path, "w").write (zip.read (f))
 
         def unzip_foreach (path, is_directory, data):
             (zip, temp_path) = data
@@ -320,7 +322,9 @@ class ProfileStorage:
                 if not os.path.exists (dest_dir):
                     os.makedirs (dest_dir)
 
-                zip.extract(path, temp_path)
+                # Python 2.6 dependency
+                # zip.extract(path, temp_path)
+                file (abs_path, "w").write (zip.read (path))
 
         self.__foreach_all (unzip_foreach, (self.zip, self.temp_path))
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]