]> pd.if.org Git - zpackage/commitdiff
rename pkglist to pkgid
authorNathan Wagner <nw@hydaspes.if.org>
Sat, 23 Feb 2019 15:38:05 +0000 (15:38 +0000)
committerNathan Wagner <nw@hydaspes.if.org>
Sat, 23 Feb 2019 15:38:05 +0000 (15:38 +0000)
src/syncfs.c

index e88c09e7f6b17e2a8d0c4a08eb1a67ca7c45d1c8..9015fc1aed50e7c53f3b982f250b71a312f1a0b9 100644 (file)
@@ -349,7 +349,7 @@ static int read_item(struct config *conf, int ncols, char **vals, char **cols,
        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");
@@ -1520,6 +1520,8 @@ static void runstage(struct config *conf, char *stage,
        }
        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);