Commit Diff


commit - 5c5b700d83bd388c33f0986625d7cfd1d3034eb4
commit + a3732925d56d405b23cb78c857539f6d2807ba5e
blob - a049f2570b0f88b5cc39a188fdc68455d83c89b4
blob + 4c34bda5ac95baca2dc06b2aef5001ef6349e680
--- resources/cgi/gempkg
+++ resources/cgi/gempkg
@@ -61,7 +61,7 @@ if not path or path == '/':
     print("20 text/gemini;charset=utf-8\r")
     print("Welcome to GemPKG, the gemini interface to the OpenBSD port collection.")
     print("")
-    print(f"=> {script_path}/search Search for a package")
+    print(f"=> /{script_path}/search Search for a package")
     print("")
     print("What you search will be matched against the package name (pkgstem), the comment, the DESCR and the maintainer.")
     exit(0)
@@ -78,14 +78,14 @@ try:
         cursor = conn.execute(query_search, (query,))
 
         print("20 text/gemini;charset=utf-8\r")
-        print(f"=> {script_path} GemPKG home")
-        print(f"=> {script_path}/search Search the OpenBSD port collection")
+        print(f"=> /{script_path} GemPKG home")
+        print(f"=> /{script_path}/search Search the OpenBSD port collection")
         print("")
         print(f"# Search results for \"{query}\"")
         print("")
         for row in cursor:
             stem, comment, fullpkgpath = row
-            print(f"=> {script_path}/{fullpkgpath} {stem}")
+            print(f"=> /{script_path}/{fullpkgpath} {stem}")
             print(f"> {comment}")
             print("")
             print("")
@@ -100,8 +100,8 @@ try:
         fullpkgpath, stem, comment, descr, maintainer, readme, www = row
 
         print("20 text/gemini;charset=utf-8\r")
-        print(f"=> {script_path} GemPKG home")
-        print(f"=> {script_path}/search Search the OpenBSD port collection")
+        print(f"=> /{script_path} GemPKG home")
+        print(f"=> /{script_path}/search Search the OpenBSD port collection")
         print("")
         print(f"# {path}")
         print(f"``` The command to execute to install the package {stem}")