[Pkg-openmpi-maintainers] Bug#464795: Bug#464795: Bug#464795: Bug#464795: dead symlink in /usr/lib/libmpi.so

Dirk Eddelbuettel edd at debian.org
Fri Feb 15 02:30:16 UTC 2008


I just tried this as a first attempt towards preinst:


#!/bin/sh

set -e

for link in /etc/alternatives/libopenmpi.so /etc/alternatives/libmpi++.so
do
    echo -n "Looking at $link: "
    if test -e $link 
    then
	echo -n "Yes "
    else	
        echo -n "No "
    fi
    if test -f $link 
    then
	echo -n "Yes "
    else	
        echo -n "No "
    fi
    if test -h $link 
    then
	echo -n "Yes "
    else	
        echo -n "No "
    fi
    echo ""
done

exit 0

Bizarre:

edd at ron:~/src/debian/SVN/openmpi/debian> ./libopenmpi-dev.preinst
Looking at /etc/alternatives/libopenmpi.so: No No No
Looking at /etc/alternatives/libmpi++.so: No No Yes

5 times NO ?   I don't believe it...

Dirk



-- 
Three out of two people have difficulties with fractions.






More information about the Pkg-openmpi-maintainers mailing list