101 |
then |
then |
102 |
# no packages of SEARCH_CAT are installed |
# no packages of SEARCH_CAT are installed |
103 |
[[ ! -d ${MROOT}${INSTALLDB}/${SEARCH_CAT} ]] && exit 1 |
[[ ! -d ${MROOT}${INSTALLDB}/${SEARCH_CAT} ]] && exit 1 |
104 |
find ${MROOT}${INSTALLDB}/${SEARCH_CAT} -maxdepth 1 -mindepth 1 -printf "${SEARCH_CAT}/%P\n" | sort |
find -L ${MROOT}${INSTALLDB}/${SEARCH_CAT} -maxdepth 1 -mindepth 1 -printf "${SEARCH_CAT}/%P\n" | sort |
105 |
|
|
106 |
exit 0 |
exit 0 |
107 |
fi |
fi |
108 |
|
|
109 |
# generate multidim array |
# generate multidim array |
110 |
declare -i INSTALL_DATABASE_COUNT=0 |
declare -i INSTALL_DATABASE_COUNT=0 |
111 |
for line in $(find ${MROOT}${INSTALLDB} -maxdepth 2 -mindepth 2 -printf '%P\n' | sort) |
for line in $(find -L ${MROOT}${INSTALLDB} -maxdepth 2 -mindepth 2 -printf '%P\n' | sort) |
112 |
do |
do |
113 |
INSTALL_DATABASE_PCAT[${INSTALL_DATABASE_COUNT}]="${line%/*}" |
INSTALL_DATABASE_PCAT[${INSTALL_DATABASE_COUNT}]="${line%/*}" |
114 |
pkgname="${line#*/}" |
pkgname="${line#*/}" |