Skip to content
Permalink
Browse files

Pulling rev 9403 from trunk to fix TM restore issue

  • Loading branch information...
m0rgen committed Jul 3, 2012
1 parent 1fac327 commit 8dc681462aa9c968aff1954dd7db9d56dacce86b
Showing with 3 additions and 3 deletions.
  1. +3 −3 contrib/migration/calendarmigrator.py
@@ -651,8 +651,8 @@ def relocateData(sourceRoot, targetRoot, sourceVersion, oldServerRootValue,
# Before 10.8, DocumentRoot and DataRoot were relative to ServerRoot

if oldServerRootValue:
if diskAccessor.exists(oldServerRootValue): # external volume
log("Using external calendar server root: %s" % (newServerRoot,))
if oldServerRootValue.rstrip("/") != NEW_SERVER_ROOT: # external volume
log("Using external calendar server root: %s" % (oldServerRootValue,))
# ServerRoot needs to be /Library/Server/Calendar and Contacts
# Since DocumentRoot is now relative to DataRoot, move DocumentRoot into DataRoot
newDataRoot = newDataRootValue = os.path.join(oldServerRootValue, "Data")
@@ -699,7 +699,7 @@ def relocateData(sourceRoot, targetRoot, sourceVersion, oldServerRootValue,
else: # 10.8 -> 10.8

if oldServerRootValue:
if diskAccessor.exists(oldServerRootValue): # external volume
if oldServerRootValue.rstrip("/") != NEW_SERVER_ROOT: # external volume
log("Using external calendar server root: %s" % (oldServerRootValue,))
elif diskAccessor.exists(absolutePathWithRoot(sourceRoot, oldServerRootValue)):
log("Copying calendar server root: %s" % (newServerRoot,))

0 comments on commit 8dc6814

Please sign in to comment.
You can’t perform that action at this time.