From ec9d39b1eb00da2b2fae95a8ccad42fb42a83ef0 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Wed, 21 Jul 2010 10:34:06 +0000 Subject: [PATCH] * Locale Roster : exclude the "gcc4" and "gcc2" folders when searching for add-ons. Avoids an useless debug message. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37643 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/locale/LocaleRoster.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/kits/locale/LocaleRoster.cpp b/src/kits/locale/LocaleRoster.cpp index 1593db3f17..667169289c 100644 --- a/src/kits/locale/LocaleRoster.cpp +++ b/src/kits/locale/LocaleRoster.cpp @@ -50,13 +50,6 @@ const char *BLocaleRoster::kCatSigAttr = "BEOS:LOCALE_SIGNATURE"; const char *BLocaleRoster::kCatFingerprintAttr = "BEOS:LOCALE_FINGERPRINT"; // catalog fingerprint, may live in catalog file -const char *BLocaleRoster::kCatManagerMimeType - = "application/x-vnd.Be.locale.catalog-manager"; - // signature of catalog managing app -const char *BLocaleRoster::kCatEditorMimeType - = "application/x-vnd.Be.locale.catalog-editor"; - // signature of catalog editor app - const char *BLocaleRoster::kEmbeddedCatAttr = "BEOS:LOCALE_EMBEDDED_CATALOG"; // attribute which contains flattened data of embedded catalog // this may live in an app- or add-on-file @@ -358,7 +351,9 @@ RosterData::InitializeCatalogAddOns() while ((count = addOnFolder.GetNextDirents((dirent *)buf, 4096)) > 0) { dent = (dirent *)buf; while (count-- > 0) { - if (strcmp(dent->d_name, ".") && strcmp(dent->d_name, "..")) { + if (strcmp(dent->d_name, ".") && strcmp(dent->d_name, "..") + && strcmp(dent->d_name, "gcc2") + && strcmp(dent->d_name, "gcc4")) { // we have found (what should be) a catalog-add-on: eref.device = dent->d_pdev; eref.directory = dent->d_pino;