diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-12-26 22:51:22 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-12-26 22:51:22 (GMT) |
commit | 7733514f0860ed1529c9effe831aa683cdc7d3c4 (patch) | |
tree | 6f42cc9aca7ec73a08412beb108b424a66d5444b /commands/clean | |
parent | f7a5dd469a381c1b2f358f41bcd105cf4651df56 (diff) |
Cleanup clean
Diffstat (limited to 'commands/clean')
-rwxr-xr-x | commands/clean | 30 |
1 files changed, 2 insertions, 28 deletions
diff --git a/commands/clean b/commands/clean index 1a68817..67c9f2b 100755 --- a/commands/clean +++ b/commands/clean @@ -1,35 +1,9 @@ #!/usr/bin/python -import glob -import os - import common -from devbot import build -from devbot import config -from devbot import environ -from devbot import state -from devbot import config +from devbot import clean common.setup() -os.chdir(config.logs_dir) - -print "Deleting logs" - -try: - os.unlink("all-logs.tar.bz2") -except OSError: - # Migth not exist - pass - -for filename in glob.glob("*.log"): - try: - os.unlink(filename) - except OSError: - # Files migth not exist - pass - -build.clean() -state.clean() -config.clean() +clean.clean() |