# HG changeset patch # User Jeff Hammel # Date 1273279750 25200 # Node ID e091caa41075242f4843441fcf150d24f478bb5c # Parent e76a122d8622761bbdf2d04d3d305fb760e90ee6 add assertion that path doesnt exist already diff -r e76a122d8622 -r e091caa41075 profilemanager/manager.py --- a/profilemanager/manager.py Fri May 07 17:22:38 2010 -0700 +++ b/profilemanager/manager.py Fri May 07 17:49:10 2010 -0700 @@ -158,6 +158,9 @@ dest = os.path.abspath(dest) name = dest + # ensure backup directory is not already present + assert not os.path.exists(dest), "'%s' already exists" + # copy the files self.clone(profile, dest, add=False)