diff options
author | Karel Kočí <cynerd@email.cz> | 2018-02-11 13:05:08 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2018-02-11 13:05:08 +0100 |
commit | b0e22c5f037c2c09e2629770a7ae89c1cc1e8744 (patch) | |
tree | ddc089c659ab8b6f6bf0cacab49e8ebc5be2af12 /sys-apps/personal-utils | |
parent | f4e271eb583fc17f5d1f8dff33539fa7b16dca13 (diff) | |
download | gentoo-personal-overlay-b0e22c5f037c2c09e2629770a7ae89c1cc1e8744.tar.gz gentoo-personal-overlay-b0e22c5f037c2c09e2629770a7ae89c1cc1e8744.tar.bz2 gentoo-personal-overlay-b0e22c5f037c2c09e2629770a7ae89c1cc1e8744.zip |
Make emergefix little but better and do revdev-rebuild
Diffstat (limited to 'sys-apps/personal-utils')
-rwxr-xr-x | sys-apps/personal-utils/files/emergefix | 21 | ||||
-rw-r--r-- | sys-apps/personal-utils/personal-utils-1.2-r1.ebuild (renamed from sys-apps/personal-utils/personal-utils-1.1-r1.ebuild) | 0 |
2 files changed, 20 insertions, 1 deletions
diff --git a/sys-apps/personal-utils/files/emergefix b/sys-apps/personal-utils/files/emergefix index abbc986..400df3c 100755 --- a/sys-apps/personal-utils/files/emergefix +++ b/sys-apps/personal-utils/files/emergefix @@ -1,2 +1,21 @@ #!/bin/sh -emerge -auDN --with-bdeps=y @world "$@" && emerge --depclean -a +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 diff --git a/sys-apps/personal-utils/personal-utils-1.1-r1.ebuild b/sys-apps/personal-utils/personal-utils-1.2-r1.ebuild index 6c98922..6c98922 100644 --- a/sys-apps/personal-utils/personal-utils-1.1-r1.ebuild +++ b/sys-apps/personal-utils/personal-utils-1.2-r1.ebuild |