Magellan Linux

Diff of /trunk/mage/usr/lib/mage/ldd-fix.sh

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

revision 2154 by niro, Mon Mar 12 23:23:02 2012 UTC revision 2155 by niro, Wed Aug 14 07:19:37 2013 UTC
# Line 20  do Line 20  do
20   i=$(ldd ${file} | grep 'not found')   i=$(ldd ${file} | grep 'not found')
21   if [ -n "${i}" ]   if [ -n "${i}" ]
22   then   then
23   x=$(grep -irl ${file}§ /var/db/mage/*)   x=$(magequery -e ${file})
24   #echo DEBUG:$x   #echo DEBUG:$x
25   if [ -n "${x}" ]   if [ -n "${x}" ]
26   then   then
27   for pkg in ${x}   for pkg in ${x}
28   do   do
29   k=$(basename $(dirname ${pkg}))   k="${pkg}"
30   if [ -z "$(echo ${PACKAGES_TO_CHECK} | grep ${k})" ]   if [ -z "$(echo ${PACKAGES_TO_CHECK} | grep ${k})" ]
31   then   then
32   PACKAGES_TO_CHECK="${PACKAGES_TO_CHECK} ${k}"   PACKAGES_TO_CHECK="${PACKAGES_TO_CHECK} ${k}"

Legend:
Removed from v.2154  
changed lines
  Added in v.2155