From 7733514f0860ed1529c9effe831aa683cdc7d3c4 Mon Sep 17 00:00:00 2001 From: Daniel Narvaez Date: Wed, 26 Dec 2012 22:51:22 +0000 Subject: Cleanup clean --- (limited to 'commands') 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() -- cgit v0.9.1