From 1e4abff2fa34880d61a9f4f46271c1223a14cdb6 Mon Sep 17 00:00:00 2001 From: rfm Date: Wed, 21 Apr 2010 21:49:12 +0000 Subject: [PATCH] fix broken tool resource lookup git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30212 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 5 +++++ Source/NSBundle.m | 9 ++------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index c92924583..0647079bd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-04-21 Richard Frith-Macdonald + + * Source/NSBundle.m: ([mainBundle]) Fix error determining whether + the bundle is an app or not ... was breaking lookup of tool resources. + 2010-04-19 Richard Frith-Macdonald * Source/cifframe.m (cifframe_type): Fix the cached information diff --git a/Source/NSBundle.m b/Source/NSBundle.m index 28f8c7830..7434ae5d1 100644 --- a/Source/NSBundle.m +++ b/Source/NSBundle.m @@ -1054,17 +1054,12 @@ _bundle_load_callback(Class theClass, struct objc_category *theCategory) && [s hasSuffix: @".gswa"] == NO // GNUstep Web && [s hasSuffix: @".woa"] == NO // GNUstep Web ) - { - /* Well known file extension ... app wrapper format. - */ - isApplication = YES; - } - else { NSFileManager *mgr = manager(); BOOL f; - /* Might be an app wrapper with another extension... + /* Not one of the common extensions, but + * might be an app wrapper with another extension... * Look for Info-gnustep.plist or Info.plist in a * Resources subdirectory. */