changeset 48:09a2666999fa

* restore profiles.ini to base in tests * correct dirname vs dest in cloning
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 07 May 2010 09:26:32 -0700
parents 420becb84df7
children cbd471e0146f
files profilemanager/manager.py profilemanager/tests/test.py
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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:
--- 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]'