#include <fcntl.h>
#include "tlse.h"
-#define MARK fprintf(stderr, "%s %s:%d\n", __FILE__, __func__, __LINE__)
struct tls_uri {
char *scheme;
switch (io.status_code) {
case 304:
+ progressbar = 0;
break;
case 301:
case 302:
pdots(50, '.', total, total+ret,
io.content_length);
} else {
- int old = total / 1000000;
- int new = (total+ret)/1000000;
- while (old < new) {
- putc('.',stderr);
- }
+ putc('\r', stderr);
+ fprintf(stderr, "%zu", total+ret);
}
total += ret;
}
save_config_file(conf, &nitem, save);
}
if (note) {
- zpm_note_add(conf->log, nitem.pkglist, nitem.path, nitem.hash,
- note, nitem.hash);
+ fprintf(stderr, "%s (%s) '%s' ", nitem.pkglist,
+ nitem.hash, nitem.path);
+ fprintf(stderr, note, nitem.hash);
+ fprintf(stderr, "\n");
+
+ zpm_note_add(conf->log, nitem.pkglist, nitem.path,
+ nitem.hash, note, nitem.hash);
}
} else {
if (save) {
/* TODO set conf var to finalize error reporting */
if (conf.verbose) {
- fprintf(stderr, "syncing filesystem %s (ldb %s) from %s\n",
+ fprintf(stderr, "syncing filesystem %s (ldb %s)\n",
conf.rootdir ? conf.rootdir : "/",
- localdbfile, pkgdbfile);
+ localdbfile);
}
conf.errors = 0;
if [ $verbose -gt 0 ]; then
syncopts="${syncopts} -v"
-else
- # force -v during development
- syncopts="${syncopts} -v"
fi
+#else
+ # force -v during development
+ #syncopts="${syncopts} -v"
+#fi
if [ $dryrun -eq 0 ] && [ $backup -eq 1 ]; then
true