tags 366384 + patch thanks Hi!
Attached is a patch fixing the postinst script for new installation of liblockdev1. Regards, -- Jérémy
diff -Naur lockdev-1.0.3.old/debian/liblockdev1.postinst lockdev-1.0.3/debian/liblockdev1.postinst --- lockdev-1.0.3.old/debian/liblockdev1.postinst 2006-11-01 11:10:42.000000000 +0100 +++ lockdev-1.0.3/debian/liblockdev1.postinst 2006-11-01 11:16:20.000000000 +0100 @@ -1,20 +1,23 @@ #!/bin/sh -e -if [ "$1" = "configure" -a "`echo $2 | sed -e 's/[.-]//g'`" -lt 1031 ] +if [ "$1" = "configure" -a -n "$2" ] then - echo "" >&2 - echo "WARNING" >&2 - echo "Format of device lock files have changed, you will need to restart all" >&2 - echo "programs that have locked device files using the old version of liblockdev." >&2 - echo "" >&2 - if ls /var/lock/LCK.[0-9]* 2>/dev/null + if [ "`echo $2 | sed -e 's/[.-]//g'`" -lt 1031 ] then - echo "Right now the following programs use old lockfiles:" >&2 echo "" >&2 - ps -p `cat /var/lock/LCK.[0-9]*` + echo "WARNING" >&2 + echo "Format of device lock files have changed, you will need to restart all" >&2 + echo "programs that have locked device files using the old version of liblockdev." >&2 echo "" >&2 - echo "Press ENTER to continue..." >&2 - read foo + if ls /var/lock/LCK.[0-9]* 2>/dev/null + then + echo "Right now the following programs use old lockfiles:" >&2 + echo "" >&2 + ps -p `cat /var/lock/LCK.[0-9]*` + echo "" >&2 + echo "Press ENTER to continue..." >&2 + read foo + fi fi fi
signature.asc
Description: Digital signature