Browse Source

Dimitar Zhekov:


			
			
				rocklinux
			
			
		
Dimitar Zhekov 20 years ago
parent
commit
adefd20d44
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      scripts/functions

+ 2
- 2
scripts/functions

@ -438,11 +438,11 @@ dump_env() {
# the really installed package data for rebuilds (and so manual builds). # the really installed package data for rebuilds (and so manual builds).
# #
pkginstalled() { pkginstalled() {
local pattern="$1"; pattern="${pattern//+/\\+}"
if [ "$stagelevel" -le 8 ] ; then if [ "$stagelevel" -le 8 ] ; then
local pattern="$1"; pattern="${pattern//+/\\+}"
egrep -q "^X.* ($pattern) " $base/config/$config/packages egrep -q "^X.* ($pattern) " $base/config/$config/packages
else else
[ -f $root/var/adm/packages/$1 ]
ls $root/var/adm/flists | egrep -q "^($pattern)$"
fi fi
} }

Loading…
Cancel
Save