[prev in list] [next in list] [prev in thread] [next in thread]
List: gentoo-dev
Subject: [gentoo-dev] emerge update --world - solution
From: Thilo Bangert <thilo.bangert () gmx ! net>
Date: 2002-03-31 18:18:28
[Download RAW message or body]
Hi,
this is my solution for the missing --world in emerge
it's a quick hack and thanks go out to vitaly from whose qpkg i
shamelessly stole the sed script
--
regards
Thilo
["update-world" (application/x-shellscript)]
#!/bin/bash
#
# a script to make emerge do an update on all installed ebuilds when possible
# this does not work if you have
# - masked package installed
# - packages that need to be updated require ebuilds not yet in portage (in my case: \
kbiff) # - packages installed that can't be found in your tree
#
# this is because portage>=1.8.9 gives a fatal error when encountering an ebuild \
which it cant find in the tree #
# NO WARRANTY! USE AT OWN RISK!
# This program is distributed under the terms of GPL version 2.
# copyright by Thilo Bangert <thilo.bangert@gmx.net>
# Odense, 20020331 - happy easter
while [ $# -gt 0 ]
do
a=$1
shift
case "$a" in
--pretend)
pretend=y
;;
--fetchonly)
fetchonly=y
;;
-h|--help)
usage=y
;;
esac
done
if [ "$usage" ]
then
echo "
-h this help message
--help
--pretend do not actually perform the update
--fetchonly only fetch the sources
"
exit 1
fi
if [ "$fetchonly" ]
then
emerge --fetchonly --update `/usr/lib/portage/bin/pkglist | sed -e 's:-r[0-9]*::' \
-e 's:-[^-]*$::' | sort` elif [ "$pretend" ]
then
emerge --pretend --update `/usr/lib/portage/bin/pkglist | sed -e 's:-r[0-9]*::' \
-e 's:-[^-]*$::' | sort` else
emerge --update `/usr/lib/portage/bin/pkglist | sed -e 's:-r[0-9]*::' -e \
's:-[^-]*$::' | sort` fi
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic