Magellan Linux

Diff of /trunk/mage/usr/lib/mage/magequery.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3207 by niro, Mon Jul 31 08:26:16 2023 UTC revision 3208 by niro, Mon Aug 21 19:21:51 2023 UTC
# Line 101  if [[ ${SEARCH_ONLY_CAT} = 1 ]] Line 101  if [[ ${SEARCH_ONLY_CAT} = 1 ]]
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#*/}"

Legend:
Removed from v.3207  
changed lines
  Added in v.3208