# HG changeset patch # User Jeff Hammel # Date 1291137826 28800 # Node ID fbf19940fa97612496a3d6b9d2685223974af8cd # Parent 1b802678b34100358e2b3ff14fd9c6492039d556 remove the staging directory you attempted to download diff -r 1b802678b341 -r fbf19940fa97 makeitso/makeitso.py --- a/makeitso/makeitso.py Tue Nov 30 09:21:22 2010 -0800 +++ b/makeitso/makeitso.py Tue Nov 30 09:23:46 2010 -0800 @@ -5,6 +5,7 @@ import os import re +import shutil import subprocess import sys import tempfile @@ -20,15 +21,17 @@ tempita_location = 'http://bitbucket.org/ianb/tempita/raw-file/tip/tempita/' def cleanup(): + + # remove temporary net module directory if 'tempdir' in globals(): - ### TODO: remove it - pass + shutil.remove(tempdir) try: import tempita except ImportError: # Get tempita from the net + # TODO: abstract this to get arbitrary modules from the net def getFiles(url, subdir, files): """ fetch files from the internet