Darcsweb-Url:
http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=setup;a=darcs_commitdiff;h=20070714175236-e2957-9ad26335b7b23673c0c16fed1952f9459cab6fb4.gz;
[configsource: remove firstmirror()
VMiklos <[EMAIL PROTECTED]>**20070714175236
just use the first selected mirror as a template for a possible custom mirror
] {
hunk ./src/plugins/configsource.c 55
-char *firstmirror(char *fn)
-{
- FILE *fp;
- char line[PATH_MAX];
- char *ptr;
-
- if ((fp = fopen(fn, "r"))== NULL)
- {
- perror(_("Could not open output file for reading"));
- return(NULL);
- }
- while(!feof(fp))
- {
- if(fgets(line, 256, fp) == NULL)
- break;
- if(line == strstr(line, "Server = "))
- {
- fclose(fp);
- // drop /frugalware-ARCH
- ptr = strrchr(line, '/');
- *ptr = '\0';
- return(strstr(line, " = ")+3);
- }
- }
- return(NULL);
-}
-
hunk ./src/plugins/configsource.c 162
- mirror = firstmirror(fn);
hunk ./src/plugins/configsource.c 166
- "Cancel enough here."), 0, 0, mirror,
0) != -1) { //not cancel
+ "Cancel enough here."), 0, 0,
+ (char*)g_list_nth_data(newmirrorlist, 0), 0) !=
-1) { //not cancel
}
_______________________________________________
Frugalware-darcs mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-darcs