mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 09:21:53 +00:00
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:
parent
f491ac4dfb
commit
85f5384f72
2 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue