Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

0.3.4

  • Loading branch information...
commit 7cfa2e85a263bd1ab9eaa266fc50581caa20f022 1 parent 22ca43d
socketubs authored
Showing with 10 additions and 7 deletions.
  1. +1 −1  sushi/__init__.py
  2. +8 −5 sushi/recipes.py
  3. +1 −1  sushi/unbundler.py
View
2  sushi/__init__.py
@@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-
__title__ = 'sushi'
-__version__ = '0.3.3'
+__version__ = '0.3.4'
__author__ = 'Geoffrey Lehée'
__license__ = 'AGPL3'
__copyright__ = 'Copyright 2013 Geoffrey Lehée'
View
13 sushi/recipes.py
@@ -101,11 +101,14 @@ def delete(self, name):
dst_repo = '%s/%s' % (conf.get('paths', 'sushi_recipes'), '/'.join(recipe.split('/')[:-1]))
dst_recipe = '%s/%s' % (dst_repo, recipe.split('/')[-1])
- os.remove(dst_recipe)
- if not os.listdir(dst_repo):
- shutil.rmtree(dst_repo)
- if not os.listdir(dst_user):
- shutil.rmtree(dst_user)
+ try:
+ os.remove(dst_recipe)
+ if not os.listdir(dst_repo):
+ shutil.rmtree(dst_repo)
+ if not os.listdir(dst_user):
+ shutil.rmtree(dst_user)
+ except:
+ raise RecipeUnmatched("Nothing to forget.")
def get(self, name):
recipe = self.name_handler(name)
View
2  sushi/unbundler.py
@@ -19,7 +19,7 @@ def unbundle(recipe, dst):
manager = RecipesManager()
recipe_dir = manager.get(recipe)
- if recipe not in manager.list_available():
+ if manager.name_handler(recipe) not in manager.list_available():
raise UnbundlerException("Don't know this recipe.")
env = get_env(dst)
Please sign in to comment.
Something went wrong with that request. Please try again.