diff options
| author | Yaakov M. Nemoy <loupgaroublond@gmail.com> | 2009-01-05 13:50:32 -0500 |
|---|---|---|
| committer | Yaakov M. Nemoy <loupgaroublond@gmail.com> | 2009-01-05 13:50:32 -0500 |
| commit | de3320e82e5a14fe54ebb27a0ef0c0cb381128f4 (patch) | |
| tree | 131e399b7a1391fcb368396c2c931c2d11b9ac04 /base/util.py | |
| parent | 5cada39e063281f8f0be7a55f4ce2d30ae5432a9 (diff) | |
| download | fedora-devshell-de3320e82e5a14fe54ebb27a0ef0c0cb381128f4.tar.gz fedora-devshell-de3320e82e5a14fe54ebb27a0ef0c0cb381128f4.tar.xz fedora-devshell-de3320e82e5a14fe54ebb27a0ef0c0cb381128f4.zip | |
fixed package to differentiate between canonical name and rpm name
Diffstat (limited to 'base/util.py')
| -rw-r--r-- | base/util.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/base/util.py b/base/util.py index d24755e..5b68c3b 100644 --- a/base/util.py +++ b/base/util.py @@ -44,7 +44,7 @@ def log_file(fname): fout.write("-- Beginning log of %s at %s --\n" % (fname, datetime.now().isoformat(' '))) fout.flush() yield fout - fout.write("-- Ending log of %s at %s --\n" % (fname, datetime.now().isoformat(' '))) + fout.write("-- Ending log of %s at %s --\n\n" % (fname, datetime.now().isoformat(' '))) def rm(tgt): if isdir(tgt): @@ -69,11 +69,13 @@ def symlink(src, dst): if lexists(dst): rm(dst) sym(abspath(src), abspath(dst)) + return dst def move(src, dst): if lexists(dst): rm(dst) mv(src, dst) + return dst def one(l, f): for x in l: |
