1
'''Convenience methods for tarball handling.'''
3
# this is part of langpack-o-matic, by Martin Pitt <martin.pitt@canonical.com>
4
# (C) 2005 Canonical Ltd.
9
'''Extract given tarball to path.'''
11
tar = tarfile.open(tar)
14
for m in tar.getmembers():
19
def tar(path, tar, gz = True):
20
'''Create a tarball from given directory.'''
23
tar = tarfile.open(tar, 'w:gz')
25
tar = tarfile.open(tar, 'w:')