From e47f16755aa0cd3b3f32b1986c4c908edc4a3953 Mon Sep 17 00:00:00 2001 From: leleliu008 Date: Sat, 12 Oct 2024 11:33:02 +0800 Subject: [PATCH] optimized --- .github/workflows/openbsd.yml | 2 +- ppkg | 1 - uppm-shim-pkg | 8 ++++---- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/openbsd.yml b/.github/workflows/openbsd.yml index ff65049..0362d4a 100644 --- a/.github/workflows/openbsd.yml +++ b/.github/workflows/openbsd.yml @@ -56,7 +56,7 @@ jobs: run ./ppkg depends uctags - run ./ppkg install uctags --jobs=1 + run ./ppkg install uctags run ./ppkg tree uctags diff --git a/ppkg b/ppkg index ceb3e66..28f9519 100755 --- a/ppkg +++ b/ppkg @@ -9633,7 +9633,6 @@ case $1 in "$@" ;; - *) abort 1 "unrecognized argument: $1" esac diff --git a/uppm-shim-pkg b/uppm-shim-pkg index ac930ad..b10ddde 100755 --- a/uppm-shim-pkg +++ b/uppm-shim-pkg @@ -35,14 +35,14 @@ main() { shift 1 for UPPM_PACKAGE_NAME in "$@" do - BREW_PACKAGE_NAME="$(package_name_transform_from_uppm_to_pkg "$UPPM_PACKAGE_NAME")" - pkg install -y "$BREW_PACKAGE_NAME" + FPKG_PACKAGE_NAME="$(package_name_transform_from_uppm_to_pkg "$UPPM_PACKAGE_NAME")" + pkg install -y "$FPKG_PACKAGE_NAME" done ;; is-installed) shift 1 - BREW_PACKAGE_NAME="$(package_name_transform_from_uppm_to_pkg "$1")" - pkg info "$BREW_PACKAGE_NAME" 2>/dev/null + FPKG_PACKAGE_NAME="$(package_name_transform_from_uppm_to_pkg "$1")" + pkg info "$FPKG_PACKAGE_NAME" 2>/dev/null ;; info) shift 1