Remove "repeated" file existence checking from ROFSBUILD
authorjascui
Mon, 29 Nov 2010 15:29:25 +0800
changeset 707 ccd52fece6ff
parent 690 c67de7b29582
child 708 0757c2976f96
Remove "repeated" file existence checking from ROFSBUILD
imgtools/romtools/rofsbuild/r_obey.cpp
imgtools/romtools/rofsbuild/rofsbuild.cpp
--- a/imgtools/romtools/rofsbuild/r_obey.cpp	Wed Nov 17 13:47:08 2010 +0800
+++ b/imgtools/romtools/rofsbuild/r_obey.cpp	Mon Nov 29 15:29:25 2010 +0800
@@ -1484,33 +1484,9 @@
 		return EFalse;
 	}
 
-	if (aKeyword!=EKeywordHideV2) {
-
-		// check the PC file exists
-		char* nname = NormaliseFileName(iReader.Word(1)); 
-		if(gIsOBYUTF8 && !UniConv::IsPureASCIITextStream(nname))
-		{
-			char* tempnname = strdup(nname);
-			unsigned int namelen = 0;
-			if(UniConv::UTF82DefaultCodePage(tempnname, strlen(tempnname), &nname, &namelen) < 0)
-			{
-				Print(EError, "Invalid filename encoding: %s\n", tempnname);
-				free(tempnname);
-				delete[] nname;
-				return EFalse;
-			}
-			free(tempnname);
-		}
-		ifstream test(nname);
-		if (!test) {
-			Print(EError,"Cannot open file %s for input.\n",iReader.Word(1));
-			iMissingFiles++;
-		}
-		test.close();
-		delete []nname;
+	if (aKeyword==EKeywordHideV2) {
+		epocPathStart=1;
 	}
-	else
-		epocPathStart=1;
 
 	iNumberOfFiles++;
 
--- a/imgtools/romtools/rofsbuild/rofsbuild.cpp	Wed Nov 17 13:47:08 2010 +0800
+++ b/imgtools/romtools/rofsbuild/rofsbuild.cpp	Mon Nov 29 15:29:25 2010 +0800
@@ -49,7 +49,7 @@
 
 static const TInt RofsbuildMajorVersion=2;
 static const TInt RofsbuildMinorVersion=16;
-static const TInt RofsbuildPatchVersion=2;
+static const TInt RofsbuildPatchVersion=3;
 static TBool SizeSummary=EFalse;
 static TPrintType SizeWhere=EAlways;