X-Git-Url: https://git.ao2.it/config/bash.git/blobdiff_plain/89d0e7e4ee392615335226b9cd338add542659e9..HEAD:/.bash/aliases.d/debian diff --git a/.bash/aliases.d/debian b/.bash/aliases.d/debian index 7efbc63..b65caa1 100644 --- a/.bash/aliases.d/debian +++ b/.bash/aliases.d/debian @@ -10,6 +10,7 @@ if command -v aptitude &> /dev/null; then function aptitude-remove-dep() { + local PACKAGES PACKAGES=$(apt-cache showsrc "$1" | grep Build-Depends | perl -p -e 's/(?:[\[(].+?[\])]|Build-Depends:|,|\|)//g') sudo aptitude markauto "$PACKAGES" }