~earboxer/apkbrowser-gemini

4eca33468eb5c0e34792834733658701a9262656 — Zach DeCook 3 months ago ac6c0c3
package: Support going "up" a directory
1 files changed, 6 insertions(+), 0 deletions(-)

M package
M package => package +6 -0
@@ 10,6 10,12 @@ package="$(printf '%s' $5 | tr -dc '[:alnum:]-')"

IFS="$(printf "\t")"

if test "$package" = ""; then
	# TODO: More specific "up one dir" functionality.
	printf "30 /packages\r\n"
	exit 0
fi

set -- $(
	printf "SELECT version, description, url, license, size, installed_size, origin, maintainer.name, build_time, \`commit\`
		FROM packages