From e0214f50fcf9ed0fdcdca444986fc998db5d0dee Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Sat, 23 Feb 2019 15:38:05 +0000 Subject: [PATCH] rename pkglist to pkgid --- src/syncfs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.40.0