n->ohash = COL("ohash");
n->mds = COL("mds");
n->omds = COL("omds");
- n->pkglist = COL("pkglist");
+ n->pkglist = COL("pkgid");
if (n->ftype == 'r') {
n->hash = COL("hash");
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) {
}
if (conf->reverse) {
sqlite3_str_appendall(s," order by length(path) desc, path desc");
+ } else {
+ sqlite3_str_appendall(s," order by length(path), path");
}
sql = sqlite3_str_value(s);
/* 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;