diff options
| author | Yaakov M. Nemoy <loupgaroublond@gmail.com> | 2009-01-16 21:26:10 -0500 |
|---|---|---|
| committer | Yaakov M. Nemoy <loupgaroublond@gmail.com> | 2009-01-16 21:26:10 -0500 |
| commit | c5b381c3af851468406f8ee71cbf24b5f11becdf (patch) | |
| tree | 4d6dfaa19f2addae77c78990013a24e3fb8ed9b9 /base | |
| parent | 2033632cb3fc1ed5d9d16be5552ac941033beb66 (diff) | |
| download | fedora-devshell-c5b381c3af851468406f8ee71cbf24b5f11becdf.tar.gz fedora-devshell-c5b381c3af851468406f8ee71cbf24b5f11becdf.tar.xz fedora-devshell-c5b381c3af851468406f8ee71cbf24b5f11becdf.zip | |
Small bugfixes
Diffstat (limited to 'base')
| -rw-r--r-- | base/util.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/base/util.py b/base/util.py index 5f71534..5193bcd 100644 --- a/base/util.py +++ b/base/util.py @@ -108,5 +108,9 @@ def flatten(l): _flatten(acc, l) return acc +def base_dir(tarball): + ti = tarball.next() + return ti.name.split('/')[0] + __all__ = ['pwd', 'copy', 'with_sudo', 'with_su', 'symlink', 'move', - 'log_file', 'one', 'remove_all', 'flatten'] + 'log_file', 'one', 'remove_all', 'flatten', 'base_dir'] |
