commit - 31d4eecb81ba84e61f492053f00f7778b6d9ada8
commit + 420337b301ecee0fb4c17f576d30adb27325059a
blob - 0c9343f80eed93d5a26acedd204c252c90bcdb8e
blob + 69b59a7f92e19234227155405aac0070a37cc726
--- resources/cgi/gempkg
+++ resources/cgi/gempkg
print("Welcome to GemPKG,",
"the gemini interface for the OpenBSD ports collection.")
print("")
- print(f"=> {script_path}/search Search for a package")
- print(f"=> {script_path}/all All categories")
+ print(f"=> {script_path}/search/ Search for a package")
+ print(f"=> {script_path}/all/ All categories")
print("")
print(
"What you search will be matched against the package name (pkgstem),",
def nav():
print(f"=> {script_path}/ GemPKG")
- print(f"=> {script_path}/search Search for a package")
- print(f"=> {script_path}/all All Categories")
+ print(f"=> {script_path}/search/ Search for a package")
+ print(f"=> {script_path}/all/ All Categories")
print("")
reply(20, "text/gemini;lang=en")
nav()
+ print(f"# packages matching {query}\n")
for row in cursor:
stem, comment, fullpkgpath = row
print(f"=> {script_path}/{fullpkgpath}/ {stem}: {comment}")