X-Git-Url: https://git.ao2.it/config/bash.git/blobdiff_plain/89d0e7e4ee392615335226b9cd338add542659e9..ef18a3253cea6e279b2a5de23e9a1edef3bfa941:/.bash/aliases.d/debian?ds=sidebyside 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" }