new useful function master
authorIan Kelling <iank@fsf.org>
Mon, 21 Oct 2024 07:31:13 +0000 (03:31 -0400)
committerIan Kelling <iank@fsf.org>
Mon, 21 Oct 2024 07:31:13 +0000 (03:31 -0400)
src/package-manager-abstractions

index aa14875a093bfee508bd2dca1fa85012cfdc9c85..8b7989b0012e60c3bd6609558b99d914ba7250fc 100644 (file)
@@ -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