This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix configtool "directory exists" warning


Index: ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/host/tools/configtool/ChangeLog,v
retrieving revision 1.48
diff -u -5 -r1.48 ChangeLog
--- ChangeLog	7 Apr 2003 17:01:56 -0000	1.48
+++ ChangeLog	10 Apr 2003 15:27:58 -0000
@@ -1,5 +1,11 @@
+2003-04-10  John Dallaway  <jld at ecoscentric dot com>
+
+	* standalone/wxwin/docsystem.cpp: Eliminate pop-up warning when
+	attempting to create a directory under $HOME/.eCosDocs/ which already
+	exists.
+
 2003-04-07  John Dallaway  <jld at ecoscentric dot com>

 	* standalone/wxwin/appsettings.cpp,
 	  standalone/wxwin/appsettings.h: Look for user tools and build
 	tools relative to the configtool executable file.
Index: standalone/wxwin/docsystem.cpp
===================================================================
RCS file: /cvs/ecos/ecos/host/tools/configtool/standalone/wxwin/docsystem.cpp,v
retrieving revision 1.2
diff -u -5 -r1.2 docsystem.cpp
--- standalone/wxwin/docsystem.cpp	15 Dec 2001 13:42:19 -0000	1.2
+++ standalone/wxwin/docsystem.cpp	10 Apr 2003 15:27:58 -0000
@@ -1,9 +1,10 @@
 //####COPYRIGHTBEGIN####
 //
 // ----------------------------------------------------------------------------
 // Copyright (C) 1998, 1999, 2000 Red Hat, Inc.
+// Copyright (C) 2003 John Dallaway
 //
 // This program is part of the eCos host tools.
 //
 // This program is free software; you can redistribute it and/or modify it
 // under the terms of the GNU General Public License as published by the Free
@@ -25,11 +26,11 @@
 // docsystem.cpp :
 //
 //===========================================================================
 //#####DESCRIPTIONBEGIN####
 //
-// Author(s):   julians
+// Author(s):   julians, jld
 // Contact(s):  julians
 // Date:        2001/04/04
 // Version:     $Id: docsystem.cpp,v 1.19 2001/12/11 15:59:51 julians Exp $
 // Purpose:
 // Description: Various classes for the documentation system
@@ -792,11 +793,11 @@
             {
                 wxMkdir(ecosDir);
             }
             wxString name(ecMakeNameFromPath(reposDir));
             wxString ecosVerDir = ecosDir + sep + name;
-            if (!wxFileExists(ecosVerDir))
+            if (!wxDirExists(ecosVerDir))
             {
                 wxMkdir(ecosVerDir);
             }
             dir = ecosVerDir;
         }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]