summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormorganamilo <morganamilo@gmail.com>2019-11-03 22:14:02 +0000
committermorganamilo <morganamilo@gmail.com>2019-11-03 22:16:52 +0000
commitb9acc34bf13ecf501980c4663353463fa93e1320 (patch)
tree79e22820a28913e6ee2926fc244789e72f9fdcb6
parentb665c1cda264099c936220f1797c37328050536c (diff)
Imply --needed for --devel
--devel pulls in a list of potential devel packages to consider, while --needed then filters out the ones that don't actually need to upgrade. Given that I've never actually seen --devel used without --needed. It makes sense to just make the former imply the latter and simplify the user command.
-rwxr-xr-xpacaur1
1 files changed, 1 insertions, 0 deletions
diff --git a/pacaur b/pacaur
index c6ee703..7b20d20 100755
--- a/pacaur
+++ b/pacaur
@@ -132,6 +132,7 @@ UpgradeAur() {
# add devel packages
if ((devel)); then
+ needed=1
for i in "${allaurpkgs[@]}"; do
[[ "${i}" != *${vcs} || " ${aurpkgs[*]} " = *" ${i} "* ]] || aurpkgs+=("${i}")
done