From e2e0049028891882a022dd69ec542c7b464a3c4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 11 Feb 2018 15:31:46 +0100 Subject: Another update to emergefix --- sys-apps/personal-utils/files/emergefix | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) (limited to 'sys-apps/personal-utils/files/emergefix') 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 -- "$@" -- cgit v1.2.3