From 2f1412a4925f2610f90725a49c848a0c9722e4d8 Mon Sep 17 00:00:00 2001 From: SpookyDervish Date: Mon, 19 Jan 2026 19:16:59 +1100 Subject: [PATCH] force specification of version number this is cause gitea doesn't allow you to just grab the latest version of packages --- src/install.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/install.py b/src/install.py index 69668d1..dbdcafe 100644 --- a/src/install.py +++ b/src/install.py @@ -12,7 +12,7 @@ from util import check_ground_libs_path, check_sudo console = Console() -def install_package(package_name, version, args): +def install_package(package_name, version, args): retries_left = args.max_retries with console.status("Downloading tarball...", spinner="bouncingBall", spinner_style="blue") as status: @@ -80,10 +80,13 @@ def install(args): for package in args.names: # figure out which version to install package_name = package - version = "latest" + version = "1.0.0" if "@" in package: split = package.split("@") package_name = split[0] version = split[1] - + else: + console.print(f"[b red]digpkg: failed to install package: please specify version to install for {package_name}[/]") + sys.exit(1) + install_package(package_name, version, args) \ No newline at end of file