+2005-08-02 Helge Hess <helge.hess@skyrix.com>
+
+ * v4.5.180
+
+ * WEClientCapabilities.m: added Google as a known user-agent
+
+ * WOResourceManager.m, SoObjects/SoProductClassInfo.m: minor code
+ cleanup
+
+ * SoObjects/SoProductResourceManager.m: improved an error log
+
2005-07-23 Sebastian Reitenbach <reitenbach@rapideye.de>
* GNUmakefile.preamble: added OpenBSD linking flags (v4.5.179)
[_security declareObjectProtected:self->protectedBy];
}
- if (self->defaultAccess)
+ if (self->defaultAccess != nil)
[_security setDefaultAccess:self->defaultAccess];
- if (self->roleInfo) {
+ if (self->roleInfo != nil) {
NSEnumerator *perms;
NSString *perm;
perms = [self->roleInfo keyEnumerator];
- while ((perm = [perms nextObject])) {
+ while ((perm = [perms nextObject]) != nil) {
NSString *role = [self->roleInfo objectForKey:perm];
[_security declareRole:role asDefaultForPermission:perm];
p = [[self fallbackResourceManager] pathToComponentNamed:_name
inFramework:_fwname
languages:_langs];
- [self logWithFormat:@" PARENT SAID: %@", p];
+ [self logWithFormat:@" PARENT (%@) SAID: %@",
+ [self fallbackResourceManager], p];
}
return p;
}
# version file
-SUBMINOR_VERSION:=179
+SUBMINOR_VERSION:=180
# v4.5.122 requires libNGExtensions v4.5.153
# v4.5.91 requires libNGExtensions v4.5.134
#define WEUA_NewsFire 39
#define WEUA_Goliath 40
#define WEUA_PerlHTTPDAV 41
+#define WEUA_Google 42
#define WEOS_UNKNOWN 0
#define WEOS_WINDOWS 1
else if (strstr(ua, "SOPE/")) {
self->browser = WEUA_SOPE;
}
+ else if (strstr(ua, "Mediapartners-Google/")) {
+ self->browser = WEUA_Google;
+ }
else {
/* unknown browser */
self->browser = WEUA_UNKNOWN;
case WEUA_NewsFire: return @"NewsFire";
case WEUA_Goliath: return @"Goliath";
case WEUA_PerlHTTPDAV: return @"PerlHTTPDAV";
+ case WEUA_Google: return @"Google";
default: return @"unknown";
}
}
if (self->browser == WEUA_Wget) return YES;
if (self->browser == WEUA_JavaSDK) return YES;
if (self->browser == WEUA_PythonURLLIB) return YES;
+ if (self->browser == WEUA_Google) return YES;
return NO;
}
- (BOOL)isDAVClient {
PERL HTTP::DAV
'DAV.pm/v0.31'
+
+ Google Ads
+ 'Mediapartners-Google/2.1'
*/
return [component autorelease];
}
-/* description */
-
-- (NSString *)description {
- NSMutableString *ms;
-
- ms = [NSMutableString stringWithCapacity:32];
- [ms appendFormat:@"<0x%08X[%@]:", self, NSStringFromClass([self class])];
- if ([self->base length] > 0)
- [ms appendFormat:@" path='%@'", self->base];
- [ms appendString:@">"];
- return ms;
-}
-
/* KeyedData */
- (void)setData:(NSData *)_data
[self unlock];
}
+/* description */
+
+- (NSString *)description {
+ NSMutableString *ms;
+
+ ms = [NSMutableString stringWithCapacity:32];
+ [ms appendFormat:@"<0x%08X[%@]:", self, NSStringFromClass([self class])];
+ if ([self->base length] > 0)
+ [ms appendFormat:@" path='%@'", self->base];
+ [ms appendString:@">"];
+ return ms;
+}
+
@end /* WOResourceManager */
+ (NSArray *)findResourceDirectoryPathesWithName:(NSString *)_name
fhsName:(NSString *)_fhs
{
+ /* find directories which might contain resources */
NSEnumerator *e;
NSFileManager *fm;
NSMutableArray *ma;
tmp = [tmp stringByAppendingString:[[self class] shareSubpath]];
tmp = [tmp stringByAppendingString:_fhs];
if ([ma containsObject:tmp]) continue;
+ if (debugOn) [self logWithFormat:@"CHECK: %@", tmp];
if (![fm fileExistsAtPath:tmp isDirectory:&isDir])
continue;