Index: src_plugins/fp_wget/gedasymbols.c =================================================================== --- src_plugins/fp_wget/gedasymbols.c (revision 1579) +++ src_plugins/fp_wget/gedasymbols.c (revision 1580) @@ -73,7 +73,6 @@ FILE *f; int fctx; char *md5_last, *md5_new; - int tmp; char line[1024]; fp_get_mode mode; gds_t vpath; @@ -117,7 +116,7 @@ while(fgets(line, sizeof(line), f) != NULL) { char *end, *fn; - library_t *l, *parent; + library_t *l; if (*line == '#') continue; @@ -153,21 +152,22 @@ FILE *fp_gedasymbols_fopen(plug_fp_t *ctx, const char *path, const char *name, fp_fopen_ctx_t *fctx) { gds_t s; - gds_init(&s); FILE *f; - if (strncmp(path, "gedasymbols/", 12) == 0) - path+=12; - if (*path == '/') - path++; + if (strncmp(name, REQUIRE_PATH_PREFIX, strlen(REQUIRE_PATH_PREFIX)) == 0) + name+=strlen(REQUIRE_PATH_PREFIX); + else + return NULL; + if (*name == '/') + name++; + + gds_init(&s); gds_append_str(&s, FP_URL); - gds_append_str(&s, path); - gds_append(&s, '/'); gds_append_str(&s, name); gds_append_str(&s, FP_DL); - fp_wget_open(s.array, gedasym_cache, &f, &(fctx->field[FIELD_WGET_CTX].i), 1); + fp_wget_open(s.array, gedasym_cache, &f, &(fctx->field[FIELD_WGET_CTX].i), FP_WGET_UPDATE); gds_uninit(&s); return f; Index: src_plugins/fp_wget/tester.c =================================================================== --- src_plugins/fp_wget/tester.c (revision 1579) +++ src_plugins/fp_wget/tester.c (revision 1580) @@ -4,6 +4,19 @@ plug_fp_t *plug_fp_chain = NULL; +library_t ltmp; +library_t *fp_mkdir_p(const char *path) +{ + printf("lib mkdir: '%s'\n", path); + return (library_t *)<mp; +} + +library_t *fp_append_entry(library_t *parent, const char *name, fp_type_t type, void *tags[]) +{ + printf("lib entry: '%s'\n", name); + return (library_t *)<mp; +} + int main() { fp_fopen_ctx_t fctx; @@ -11,7 +24,7 @@ char line[1024]; // fp_gedasymbols_load_dir(NULL, "gedasymbols://"); - f = fp_gedasymbols_fopen(NULL, "user/sean_depagnier/footprints", "HDMI_CONN.fp", &fctx); + f = fp_gedasymbols_fopen(NULL, NULL, "wget@gedasymbols/user/sean_depagnier/footprints/HDMI_CONN.fp", &fctx); while(fgets(line, sizeof(line), f) != NULL) printf("|%s", line); Index: src_plugins/fp_wget/wget_common.c =================================================================== --- src_plugins/fp_wget/wget_common.c (revision 1579) +++ src_plugins/fp_wget/wget_common.c (revision 1580) @@ -10,7 +10,7 @@ }; const char *wget_cmd = "wget -U 'pcb-rnd-fp_wget'"; -int fp_wget_offline = 1; +int fp_wget_offline = 0; static int mkdirp(const char *dir) {