[Frugalware-darcs] setup-current: select: enable the language-specific parts from locale-extra

VMiklos vmiklos at frugalware.org
Thu Mar 16 18:08:02 CET 2006


[select: enable the language-specific parts from locale-extra
VMiklos <vmiklos at frugalware.org>**20051117204812] {
hunk ./src/plugins/select.c 29
+#include <stdlib.h>
hunk ./src/plugins/select.c 196
-	/*lang = getenv("LANG");
+	lang = strdup(getenv("LANG"));
hunk ./src/plugins/select.c 198
-	*ptr = '\0';*/
+	*ptr = '\0';
hunk ./src/plugins/select.c 234
-					if(!extra)
-					list = g_list_append(list,
-						strdup("On"));
+					// enable by default the packages in the
+					// frugalware repo + enable the
+					// language-specific parts from
+					// locale-extra
+					if((!strcmp(group, "locale-extra") &&
+					strlen(ptr2) >= strlen(lang) &&
+					!strcmp(ptr2 + strlen(ptr2) -
+					strlen(lang), lang)) || !extra)
+						list = g_list_append(list,
+							strdup("On"));
hunk ./src/plugins/select.c 245
-					list = g_list_append(list,
-						strdup("Off"));
+						list = g_list_append(list,
+							strdup("Off"));
}


More information about the Frugalware-darcs mailing list