bug 376684. change the output from -createprofile. Patch by Ray Kiddy <ray@ganymede.org>. r=bsmedberg

This commit is contained in:
sayrer%gmail.com 2007-04-26 02:56:25 +00:00
Родитель 0f1efdd2af
Коммит 69c68175da
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -1793,7 +1793,6 @@ SelectProfile(nsIProfileLock* *aResult, nsINativeAppSupport* aNative,
return rv;
}
rv = NS_ERROR_ABORT;
PR_fprintf(PR_STDERR, "Success: created profile '%s'\n", arg);
profileSvc->Flush();
// XXXben need to ensure prefs.js exists here so the tinderboxes will
@ -1801,6 +1800,9 @@ SelectProfile(nsIProfileLock* *aResult, nsINativeAppSupport* aNative,
nsCOMPtr<nsILocalFile> prefsJSFile;
profile->GetRootDir(getter_AddRefs(prefsJSFile));
prefsJSFile->AppendNative(NS_LITERAL_CSTRING("prefs.js"));
nsCAutoString pathStr;
prefsJSFile->GetNativePath(pathStr);
PR_fprintf(PR_STDERR, "Success: created profile '%s' at '%s'\n", arg, pathStr.get());
PRBool exists;
prefsJSFile->Exists(&exists);
if (!exists)