# HG changeset patch # User Jeff Hammel # Date 1273249592 25200 # Node ID 09a2666999fa5f5a72cd761cb33ee2bcab294b1b # Parent 420becb84df712ea96a269126398f0c3f5a72475 * restore profiles.ini to base in tests * correct dirname vs dest in cloning diff -r 420becb84df7 -r 09a2666999fa profilemanager/manager.py --- a/profilemanager/manager.py Fri May 07 09:06:16 2010 -0700 +++ b/profilemanager/manager.py Fri May 07 09:26:32 2010 -0700 @@ -110,7 +110,7 @@ relative = True if add: dirname = '%s.%s' % (self.hash(), name) - dest = os.path.join(self.profile_dir, dest) + dest = os.path.join(self.profile_dir, dirname) # update profiles.ini if add: diff -r 420becb84df7 -r 09a2666999fa profilemanager/tests/test.py --- a/profilemanager/tests/test.py Fri May 07 09:06:16 2010 -0700 +++ b/profilemanager/tests/test.py Fri May 07 09:26:32 2010 -0700 @@ -35,3 +35,5 @@ # Cleanup: manager.remove('testprofile') assert manager.list() == [] +f = file('profiles', 'w') +print >> f, '[General]'