Index: edakrill.c =================================================================== --- edakrill.c (revision 16360) +++ edakrill.c (revision 16361) @@ -1,3 +1,5 @@ +#include "config.h" + #include #include #include @@ -4,7 +6,7 @@ #include #include #include -#include "config.h" +#include "error.h" #include "wget_common.h" #include "edakrill.h" #include "plugins.h" @@ -144,10 +146,10 @@ if (f != NULL) fclose(f); - printf("old='%s' new='%s'\n", md5_last, md5_new); +/* printf("old='%s' new='%s'\n", md5_last, md5_new);*/ if (!md5_cmp_free(last_sum_fn, md5_last, md5_new)) { - printf("no chg.\n"); +/* printf("no chg.\n");*/ mode = FP_WGET_OFFLINE; /* use the cache */ } else @@ -154,7 +156,7 @@ mode = 0; if (fp_wget_open(url_idx_list, gedasym_cache, &f, &fctx, mode) != 0) { - printf("failed to download the new list\n"); + pcb_message(PCB_MSG_ERROR, "edakrill: failed to download the new list\n"); pcb_remove(last_sum_fn); /* make sure it is downloaded next time */ goto err; } @@ -203,8 +205,6 @@ krill_flush(ctx, &vpath, vpath_base_len); fp_wget_close(&f, &fctx); - printf("update!\n"); - quit:; gds_uninit(&vpath); return 0;