persistentstorage/centralrepository/cenrepsrv/install.cpp
branchRCL_3
changeset 12 6b6fd149daa2
parent 0 08ec8eefde2f
child 14 04ec7606545c
equal deleted inserted replaced
11:211563e4b919 12:6b6fd149daa2
     1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 1997-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
   432  		
   432  		
   433 
   433 
   434 void CCentRepSWIWatcher::ReadAndInternalizeInstallDirL(const TDesC& aInstallDirFilePath)
   434 void CCentRepSWIWatcher::ReadAndInternalizeInstallDirL(const TDesC& aInstallDirFilePath)
   435 	{
   435 	{
   436 	RFile file;
   436 	RFile file;
   437 	TInt e=file.Open(TServerResources::iFs,aInstallDirFilePath, EFileRead|EFileShareReadersOnly);
   437 	User::LeaveIfError(file.Open(TServerResources::iFs,aInstallDirFilePath, EFileRead|EFileShareReadersOnly));
   438 	if(e == KErrNotFound || e == KErrPathNotFound)
       
   439 		{
       
   440 		User::Leave(KErrNotFound);
       
   441 		}
       
   442 	CleanupClosePushL(file);
   438 	CleanupClosePushL(file);
   443 
   439 
   444 	CDirectFileStore* store = CDirectFileStore::FromLC (file);
   440 	CDirectFileStore* store = CDirectFileStore::FromLC (file);
   445 	if(store->Type()[0] != KDirectFileStoreLayoutUid)
   441 	if(store->Type()[0] != KDirectFileStoreLayoutUid)
   446 		{
   442 		{