# HG changeset patch # User jascui # Date 1291015765 -28800 # Node ID ccd52fece6ff32bf019e16672f8a19ba709b40e1 # Parent c67de7b295825f1cfcee8f698f79bb44af94c215 Remove "repeated" file existence checking from ROFSBUILD diff -r c67de7b29582 -r ccd52fece6ff imgtools/romtools/rofsbuild/r_obey.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++; diff -r c67de7b29582 -r ccd52fece6ff imgtools/romtools/rofsbuild/rofsbuild.cpp --- 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;