update 0.8

This commit is contained in:
utahta
2011-07-10 20:49:00 +09:00
parent f410b1d1d8
commit 6cb6cc6057
19 changed files with 447 additions and 202 deletions
+2 -9
View File
@@ -1,7 +1,5 @@
import os
from pythonbrew.basecommand import Command
from pythonbrew.define import PATH_BUILD, PATH_DISTS
from pythonbrew.util import rm_r
from pythonbrew.log import logger
class CleanCommand(Command):
name = "clean"
@@ -9,11 +7,6 @@ class CleanCommand(Command):
summary = "Remove stale source folders and archives"
def run_command(self, options, args):
self._clean(PATH_BUILD)
self._clean(PATH_DISTS)
logger.info('\nDEPRECATION WARNING: `pythonbrew clean` has been renamed. Please run `pythonbrew cleanup` instead.\n')
def _clean(self, root):
for dir in os.listdir(root):
rm_r(os.path.join(root, dir))
CleanCommand()