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