blob: cc25e34f655eeb743695cb0928cedb3750cbfd34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import os
import shutil
from jhbuild.commands import Command, register_command
class cmd_clear(Command):
name = 'clear'
usage_args = ''
def run(self, config, options, args):
if os.path.exists(config.checkoutroot):
shutil.rmtree(config.checkoutroot)
if os.path.exists(config.prefix):
shutil.rmtree(config.prefix)
register_command(cmd_clear)
|