diff --git a/databases/sqlports/Makefile b/databases/sqlports/Makefile index 1ff1208804d..32fc6c0ed9e 100644 --- a/databases/sqlports/Makefile +++ b/databases/sqlports/Makefile @@ -1,5 +1,5 @@ CATEGORIES = databases -V = 7.52 +V = 7.53 DISTNAME = sqlports-$V DISTFILES = COMMENT-main = sqlite database of ports diff --git a/databases/sqlports/files/Var.pm b/databases/sqlports/files/Var.pm index 0a8cbdc9b56..78956500f15 100644 --- a/databases/sqlports/files/Var.pm +++ b/databases/sqlports/files/Var.pm @@ -1,4 +1,4 @@ -# $OpenBSD: Var.pm,v 1.75 2023/11/11 11:53:07 espie Exp $ +# $OpenBSD: Var.pm,v 1.76 2025/11/03 14:46:04 sthen Exp $ # # Copyright (c) 2006-2010 Marc Espie # @@ -689,7 +689,7 @@ sub expr($self) qq{CASE $q WHEN 0 THEN $v WHEN 1 THEN '"'||$v||'"' - WHEN 2 THEN "'"||$v||"'" + WHEN 2 THEN ''''||$v||'''' END}; } diff --git a/databases/sqlports/files/scripts/print-ports-index b/databases/sqlports/files/scripts/print-ports-index index 4e99e5c53d2..80c09faa82f 100644 --- a/databases/sqlports/files/scripts/print-ports-index +++ b/databases/sqlports/files/scripts/print-ports-index @@ -1,5 +1,5 @@ #! /bin/sh -# $OpenBSD: print-ports-index,v 1.12 2019/07/14 11:27:19 espie Exp $ +# $OpenBSD: print-ports-index,v 1.13 2025/11/03 14:46:04 sthen Exp $ # # Copyright (c) 2018 Marc Espie # @@ -29,7 +29,7 @@ cat <<'EOSQL' |sqlite3 $file with d1 (d, p, t) as (select - distinct((case pkgspec when '' then '' else pkgspec||":" end)||_paths.fullpkgpath) as fd, + distinct((case pkgspec when '' then '' else pkgspec||':' end)||_paths.fullpkgpath) as fd, _depends.fullpkgpath, type from _depends join _paths on _Paths.Id=_depends.dependspath order by fd), -- and now the part that's going to be used 3 times in the main request @@ -37,7 +37,7 @@ with (select group_concat(d, ' ') as dlist, p, t from d1 group by p, t) select fullpkgname, ports.fullpkgpath, - (case prefix when '/usr/local' THEN "" else prefix end), + (case prefix when '/usr/local' THEN '' else prefix end), comment,descr, maintainer,categories, libd.dlist, buildd.dlist, rund.dlist, @@ -52,8 +52,8 @@ select fullpkgname, ports.fullpkgpath, else only_for_archs end, '?', - (case lower(PERMIT_PACKAGE) when "yes" then "y" else "n" end), - (case lower(PERMIT_DISTFILES) when "yes" then "y" else "n" end) + (case lower(PERMIT_PACKAGE) when 'yes' then 'y' else 'n' end), + (case lower(PERMIT_DISTFILES) when 'yes' then 'y' else 'n' end) from ports left join d2 as libd on libd.p=ports.pathid and libd.t=0 left join d2 as buildd on buildd.p=ports.pathid and buildd.t=2 diff --git a/databases/sqlports/files/scripts/show-reverse-deps b/databases/sqlports/files/scripts/show-reverse-deps index 664104a9eac..819af2eef78 100644 --- a/databases/sqlports/files/scripts/show-reverse-deps +++ b/databases/sqlports/files/scripts/show-reverse-deps @@ -1,5 +1,5 @@ #! /bin/sh -# $OpenBSD: show-reverse-deps,v 1.10 2020/06/11 19:55:15 espie Exp $ +# $OpenBSD: show-reverse-deps,v 1.11 2025/11/03 14:46:04 sthen Exp $ # # Copyright (c) 2018 Marc Espie # @@ -72,9 +72,9 @@ fi if $fuzzy then - query="p2.fullpkgpath like \"%$1%\"" + query="p2.fullpkgpath like '%$1%'" else - query="p2.fullpkgpath=\"$1\"" + query="p2.fullpkgpath='$1'" fi if $verbose then