From: Nathan Wagner Date: Sat, 23 Feb 2019 15:38:05 +0000 (+0000) Subject: rename pkglist to pkgid X-Git-Tag: v0.7.0~16 X-Git-Url: https://pd.if.org/git/?p=zpackage;a=commitdiff_plain;h=e0214f50fcf9ed0fdcdca444986fc998db5d0dee rename pkglist to pkgid --- 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);