From: Ian Kelling Date: Mon, 21 Oct 2024 07:31:13 +0000 (-0400) Subject: new useful function X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=distro-functions new useful function --- diff --git a/src/package-manager-abstractions b/src/package-manager-abstractions index aa14875..8b7989b 100644 --- a/src/package-manager-abstractions +++ b/src/package-manager-abstractions @@ -95,6 +95,11 @@ elif command -v apt-get &>/dev/null; then ;; esac } + pbuild-dep() { + local pkg="$1" + shift + p build-dep "$pkg"/$(debian-archive) "$@" + } pupdate() { local now t s f cachetime limittime; [[ $EUID != 0 ]] && s=sudo # update package list if its more than an 2 hours old