mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-03 12:28:51 +00:00
Monotone-Parent: 3f1a705ea4e12fea3f816fcc523a8b481c081f11
Monotone-Revision: db65c7e35ae83bc91fdec247c1d3eba6847752da Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-11-20T18:59:52 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -89,8 +89,7 @@ static NSString *productDirectoryName = @"SOGo";
|
||||
|
||||
[self _addGNUstepSearchPathesToArray: ma];
|
||||
#if COCOA_Foundation_LIBRARY
|
||||
else
|
||||
[self _addCocoaSearchPathesToArray: ma];
|
||||
[self _addCocoaSearchPathesToArray: ma];
|
||||
#endif
|
||||
|
||||
searchPathes = [ma copy];
|
||||
@@ -108,7 +107,7 @@ static NSString *productDirectoryName = @"SOGo";
|
||||
SoProductRegistry *registry = nil;
|
||||
NSFileManager *fm;
|
||||
NSEnumerator *pathes;
|
||||
NSString *lpath, *bpath, *extension;
|
||||
NSString *lpath, *bpath;
|
||||
NSEnumerator *productNames;
|
||||
NSString *productName;
|
||||
|
||||
@@ -123,9 +122,7 @@ static NSString *productDirectoryName = @"SOGo";
|
||||
productNames = [[fm directoryContentsAtPath: lpath] objectEnumerator];
|
||||
while ((productName = [productNames nextObject]))
|
||||
{
|
||||
extension = [productName pathExtension];
|
||||
if ([extension length] > 0
|
||||
&& [extension isEqualToString: @"SOGo"])
|
||||
if ([[productName pathExtension] isEqualToString: @"SOGo"])
|
||||
{
|
||||
bpath = [lpath stringByAppendingPathComponent: productName];
|
||||
[self logWithFormat: @" register SOGo product: %@",
|
||||
|
||||
Reference in New Issue
Block a user