Package: haskell-devscripts Version: 0.5.19 Tags: patch The message "ghc-pkg: cannot find package <packagename>" appears when installing or removing a package that uses dh_haskell.
The messages are somewhat misleading, as either you are trying to install that
particular package and you are told that the package doesn't exist ("That's
why I'm installing it!") or upon removing a package you are told that the
package doesn't exist ("I know, I just removed it!")
Patch attached.
(The "|| true" suffix can be removed from postinst-ghc, as the exit code of
a pipe is the exit code of the last element of it--sed--which will always
return true in this case.)
Regards,
--
Chris Lamb, UK [EMAIL PROTECTED]
GPG: 0x634F9A20
--- prerm-ghc.orig 2007-12-24 13:12:31.000000000 +0000
+++ prerm-ghc 2007-12-24 13:14:11.000000000 +0000
@@ -7,8 +7,7 @@
deconfigure|remove)
$GHC_PKG unregister #CABALNAME#-#CABALVERSION#
rm -vf #PKGLIBDIR#/HS#CABALNAME#-#CABALVERSION#.o
- OLDPACKAGE=`$GHC_PKG --global latest #CABALNAME#` \
- 2> /dev/null || true
+ OLDPACKAGE=`$GHC_PKG --global latest #CABALNAME# 2> /dev/null` || true
if [ -n "$OLDPACKAGE" ] ; then
$GHC_PKG expose $OLDPACKAGE || true
fi
signature.asc
Description: PGP signature

