avoid spurious warnings when two paths point to the same apps

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26196 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2008-03-05 09:31:10 +00:00
parent f491ac4dfb
commit 85f5384f72
2 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2008-03-05 Richard Frith-Macdonald <rfm@gnu.org>
* Tools/make_services.m: Standardise paths to avoid error reports when
two paths point to the same app.
2008-03-04 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSCell.m (-performClickWithFrame:inView:): Call

View file

@ -436,6 +436,7 @@ scanDirectory(NSMutableDictionary *services, NSString *path)
|| [ext isEqualToString: @"profile"]))
{
newPath = [path stringByAppendingPathComponent: name];
newPath = [newPath stringByStandardizingPath];
if ([mgr fileExistsAtPath: newPath isDirectory: &isDir] && isDir)
{
NSString *oldPath;
@ -499,6 +500,7 @@ scanDirectory(NSMutableDictionary *services, NSString *path)
else if (ext != nil && [ext isEqualToString: @"service"])
{
newPath = [path stringByAppendingPathComponent: name];
newPath = [newPath stringByStandardizingPath];
if ([mgr fileExistsAtPath: newPath isDirectory: &isDir] && isDir)
{
NSBundle *bundle;
@ -538,6 +540,7 @@ scanDirectory(NSMutableDictionary *services, NSString *path)
else
{
newPath = [path stringByAppendingPathComponent: name];
newPath = [newPath stringByStandardizingPath];
if ([mgr fileExistsAtPath: newPath isDirectory: &isDir] && isDir)
{
scanDirectory(services, newPath);
@ -567,6 +570,7 @@ scanApplications(NSMutableDictionary *services, NSString *path)
|| [ext isEqualToString: @"profile"]))
{
newPath = [path stringByAppendingPathComponent: name];
newPath = [newPath stringByStandardizingPath];
if ([mgr fileExistsAtPath: newPath isDirectory: &isDir] && isDir)
{
NSString *oldPath;
@ -630,6 +634,7 @@ scanApplications(NSMutableDictionary *services, NSString *path)
else
{
newPath = [path stringByAppendingPathComponent: name];
newPath = [newPath stringByStandardizingPath];
if ([mgr fileExistsAtPath: newPath isDirectory: &isDir] && isDir)
{
scanApplications(services, newPath);
@ -709,6 +714,7 @@ scanServices(NSMutableDictionary *services, NSString *path)
if (ext != nil && [ext isEqualToString: @"service"])
{
newPath = [path stringByAppendingPathComponent: name];
newPath = [newPath stringByStandardizingPath];
if ([mgr fileExistsAtPath: newPath isDirectory: &isDir] && isDir)
{
NSBundle *bundle;
@ -748,6 +754,7 @@ scanServices(NSMutableDictionary *services, NSString *path)
else
{
newPath = [path stringByAppendingPathComponent: name];
newPath = [newPath stringByStandardizingPath];
if ([mgr fileExistsAtPath: newPath isDirectory: &isDir] && isDir)
{
scanServices(services, newPath);