X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=zpm-syncfs.c;h=59a88256f66c0cfb963750b8119a856876ddd668;hb=aeefcd018ce388d9a4f496994fd9961d13ba62df;hp=85c033e2789bc54d7bc0d5c9f0273378a6fcfff7;hpb=e8412186c6099fa67c7bb9c7547e42d7490c7edb;p=zpackage diff --git a/zpm-syncfs.c b/zpm-syncfs.c index 85c033e..59a8825 100644 --- a/zpm-syncfs.c +++ b/zpm-syncfs.c @@ -871,6 +871,12 @@ static int install_files(void *f, int ncols, char **vals, char **cols) { return conf->errabort; } +#if 0 + int64_t used, high; + used = sqlite3_memory_used()/1024/1024; + high = sqlite3_memory_highwater(0)/1024/1024; + fprintf(stderr, "memory = %ld MB / %ld MB\n", used, high); +#endif if (conf->verbose && !conf->dryrun) { fprintf(stderr, "%s '%c' %s\n", nitem.opstr, nitem.ftype, nitem.dest); @@ -1302,6 +1308,7 @@ int main(int ac, char **av){ conf.log = &localdb; if (pkgdbfile) { + /* TODO open read-only */ if (!zpm_open(&pkgdb, pkgdbfile)) { fprintf(stderr, "can't open src db %s\n", localdbfile); exit(EXIT_FAILURE);