Browse Source

Stefan Fiedler:


			
			
				rocklinux
			
			
		
Stefan Fiedler 18 years ago
parent
commit
538e103d4d
1 changed files with 6 additions and 7 deletions
  1. +6
    -7
      scripts/functions

+ 6
- 7
scripts/functions

@ -507,16 +507,15 @@ dump_env() {
# Check if a package is already installed
#
# It does check the build-list if not in the rebuild stage - and
# the really installed package data for rebuilds (and so manual builds).
# Always checks the really installed package data. Checking the package list
# doesn't work in Crystal+addon targets, where some packages are only built
# in stage 9. The package data however is always there if the package has been
# installed.
#
pkginstalled() {
local pattern="$1"; pattern="${pattern//+/\\+}"
if [ "$stagelevel" -le 8 ] ; then
egrep -q "^X.* ($pattern) " $base/config/$config/packages
else
ls $root/var/adm/flists | egrep -q "^($pattern)$"
fi
ls $root/var/adm/flists | egrep -q "^($pattern)$"
}
# Register a window-manager

Loading…
Cancel
Save