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}" |