Entropy/entropyTools:

- bye bye old uncompressTarBz2 function


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2823 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
lxnay
2009-01-01 17:31:10 +00:00
parent b23d900424
commit ff606ff438
-14
View File
@@ -1622,15 +1622,6 @@ def compressTarBz2(storepath,pathtocompress):
rc = spawnCommand("cd "+pathtocompress+" && "+cmd, "&> /dev/null")
return rc
# OLD tar.bz2 uncompress function...
def compat_uncompressTarBz2(filepath, extractPath = None):
cmd = "tar xjf "+filepath+" -C "+extractPath+" &> /dev/null"
rc = os.system(cmd)
if rc != 0:
return -1
return 0
def spawnFunction(f, *args, **kwds):
uid = kwds.get('spf_uid')
@@ -1695,11 +1686,6 @@ def uncompressTarBz2(filepath, extractPath = None, catchEmpty = False):
except ImportError:
_tarfile = False
### XXX dirty bastard workaround for buggy python2.4's tarfile
if sys.version[:3] == "2.4" or not _tarfile:
rc = compat_uncompressTarBz2(filepath, extractPath)
return rc
try:
tar = tarfile.open(filepath,"r")
except tarfile.ReadError: