Speed up pre-configure step by caching the pkg_info output instead of
running it each time. Submitted by: thomas
This commit is contained in:
parent
ff135ea835
commit
ccca4b2a0e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=107908
@ -3,10 +3,15 @@
|
|||||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin:${PATH}
|
PATH=/bin:/usr/bin:/sbin:/usr/sbin:${PATH}
|
||||||
export PATH
|
export PATH
|
||||||
|
|
||||||
|
tmp_pkg_info=`mktemp -t gnome_install_pkg_info`
|
||||||
|
trap "rm -f ${tmp_pkg_info}" 0
|
||||||
|
|
||||||
|
pkg_info > ${tmp_pkg_info}
|
||||||
|
|
||||||
if [ "$2" = "PRE-INSTALL" ]; then
|
if [ "$2" = "PRE-INSTALL" ]; then
|
||||||
GNOME_ONE_DESKTOP="gnomecore gnomeapplets gnomemedia gnomeutils gtop libgtop sawfish nautilus gedit xalf bugbuddy gnomegames gdm eog ggv gnomeaudio"
|
GNOME_ONE_DESKTOP="gnomecore gnomeapplets gnomemedia gnomeutils gtop libgtop sawfish nautilus gedit xalf bugbuddy gnomegames gdm eog ggv gnomeaudio"
|
||||||
for package in ${GNOME_ONE_DESKTOP}; do
|
for package in ${GNOME_ONE_DESKTOP}; do
|
||||||
if pkg_info | grep "^${package}-[0-9]" >/dev/null 2>&1; then
|
if grep "^${package}-[0-9]" ${tmp_pkg_info} >/dev/null 2>&1; then
|
||||||
echo "${package} was detected on the system. This package is part of the GNOME 1.x"
|
echo "${package} was detected on the system. This package is part of the GNOME 1.x"
|
||||||
echo "desktop, and cannot coexist with the GNOME 2.2 desktop."
|
echo "desktop, and cannot coexist with the GNOME 2.2 desktop."
|
||||||
echo ""
|
echo ""
|
||||||
|
Loading…
Reference in New Issue
Block a user