X-Git-Url: https://pd.if.org/git/?p=zpackage;a=blobdiff_plain;f=src%2Fsyncfs.c;h=9015fc1aed50e7c53f3b982f250b71a312f1a0b9;hp=e88c09e7f6b17e2a8d0c4a08eb1a67ca7c45d1c8;hb=e0214f50fcf9ed0fdcdca444986fc998db5d0dee;hpb=c6a7a36e209ea9742d460c9c0126c510ff9906e5 diff --git a/src/syncfs.c b/src/syncfs.c index e88c09e..9015fc1 100644 --- a/src/syncfs.c +++ b/src/syncfs.c @@ -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);