Mercurial > mozilla > hg > ProfileManager
diff profilemanager/manager.py @ 46:df1b2e48dddb
handle hashing for clones only if they are added to profiles.ini
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 06 May 2010 19:05:28 -0700 |
parents | 6feee8d04db4 |
children | 420becb84df7 |
line wrap: on
line diff
--- a/profilemanager/manager.py Thu May 06 19:02:30 2010 -0700 +++ b/profilemanager/manager.py Thu May 06 19:05:28 2010 -0700 @@ -100,10 +100,10 @@ dirname = dest name = os.path.basename(dest) else: - dirname = name = dest + name = dest relative = True - if not os.path.dirname(dest): - dest = '%s.%s' % (self.hash(), dest) + if add: + dirname = '%s.%s' % (self.hash(), name) dest = os.path.join(self.profile_dir, dest) # update profiles.ini