summaryrefslogtreecommitdiff
path: root/sys-apps/personal-utils/files/emergefix
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/personal-utils/files/emergefix')
-rwxr-xr-xsys-apps/personal-utils/files/emergefix20
1 files changed, 4 insertions, 16 deletions
diff --git a/sys-apps/personal-utils/files/emergefix b/sys-apps/personal-utils/files/emergefix
index 400df3c..2439854 100755
--- a/sys-apps/personal-utils/files/emergefix
+++ b/sys-apps/personal-utils/files/emergefix
@@ -1,21 +1,9 @@
#!/bin/sh
set -e
-PRETEND=false
-for arg in "$@"; do
- case "$arg" in
- -p)
- PRETEND=true
- ;;
- esac
-done
-
echo -e '\e[1;34m========== Update packages ==========\e[0m'
emerge -auDN --with-bdeps=y @world "$@"
-
-if ! $PRETEND; then
- echo -e '\e[1;34m========== Clean packages ==========\e[0m'
- emerge --depclean -a
- echo -e '\e[1;34m========== Rebuil packages ==========\e[0m'
- revdep-rebuild
-fi
+echo -e '\e[1;34m========== Clean packages ==========\e[0m'
+emerge --depclean -a "$@"
+echo -e '\e[1;34m========== Rebuil packages ==========\e[0m'
+revdep-rebuild -- "$@"