def unpack_thin(thin_path):
 tfile = tarfile.TarFile.gzopen(thin_path)
 old_umask = os.umask(63)
 tfile.extractall(path=OPTIONS.saltdir)
 tfile.close()
 os.umask(old_umask)
 os.unlink(thin_path)

def unpack_thin ( thin_path ) : tfile = tarfile . TarFile . gzopen ( thin_path ) old_umask = os . umask ( 63 ) tfile . extractall ( path = OPTIONS . saltdir ) tfile . close ( ) os . umask ( old_umask ) os . unlink ( thin_path )
unpack the salt thin archive .