]> pd.if.org Git - zpackage/commitdiff
fix collate order syntax
authorNathan Wagner <nw@hydaspes.if.org>
Wed, 28 Nov 2018 01:48:13 +0000 (01:48 +0000)
committerNathan Wagner <nw@hydaspes.if.org>
Wed, 28 Nov 2018 01:48:13 +0000 (01:48 +0000)
zpm-merge

index dc6f51c45f13340ddb5e25ef1e9cc45f99a5f10d..87954dec2fef05abe6da0cb8bed898cb7ba24e1b 100755 (executable)
--- a/zpm-merge
+++ b/zpm-merge
@@ -164,7 +164,7 @@ fi
 check_newer() {
        pkg=$1
        package=$(zpm parse -n "$pkg")
-       newer=$(zpm shell "$target" "select '$pkg' > (select max(pkgid) collate vercmp from packages_pkgid where package = '$package') from packages_pkgid where package = '$package'")
+       newer=$(zpm shell "$target" "select '$pkg' > (select max(pkgid collate vercmp) from packages_pkgid where package = '$package') from packages_pkgid where package = '$package'")
        if [ "$newer" = '1' ] || [ -z "$newer" ]; then
                return 0;
        fi