blob: 250a26897117c357001e229e383df00283d9bebd (
plain) (
tree)
|
|
if [ -z "$PACKAGE" ] ; then
PACKAGE=${SPELL#haskell-}
fi &&
#
# we must not unregister packages that are installed by the ghc spell
#
if [[ $PACKAGE != "Cabal" ]] \
&& [[ $PACKAGE != "array" ]] \
&& [[ $PACKAGE != "base" ]] \
&& [[ $PACKAGE != "binary" ]] \
&& [[ $PACKAGE != "bytestring" ]] \
&& [[ $PACKAGE != "containers" ]] \
&& [[ $PACKAGE != "deepseq" ]] \
&& [[ $PACKAGE != "directory" ]] \
&& [[ $PACKAGE != "filepath" ]] \
&& [[ $PACKAGE != "ghc" ]] \
&& [[ $PACKAGE != "ghc-boot" ]] \
&& [[ $PACKAGE != "ghc-boot-th" ]] \
&& [[ $PACKAGE != "ghc-compact" ]] \
&& [[ $PACKAGE != "ghci" ]] \
&& [[ $PACKAGE != "ghc-prim" ]] \
&& [[ $PACKAGE != "haskeline" ]] \
&& [[ $PACKAGE != "hpc" ]] \
&& [[ $PACKAGE != "hoopl" ]] \
&& [[ $PACKAGE != "hpc" ]] \
&& [[ $PACKAGE != "integer-gmp" ]] \
&& [[ $PACKAGE != "mtl" ]] \
&& [[ $PACKAGE != "parsec" ]] \
&& [[ $PACKAGE != "pretty" ]] \
&& [[ $PACKAGE != "process" ]] \
&& [[ $PACKAGE != "stm" ]] \
&& [[ $PACKAGE != "template-haskell" ]] \
&& [[ $PACKAGE != "terminfo" ]] \
&& [[ $PACKAGE != "text" ]] \
&& [[ $PACKAGE != "time" ]] \
&& [[ $PACKAGE != "transformers" ]] \
&& [[ $PACKAGE != "unix" ]] \
&& [[ $PACKAGE != "xhtml" ]] \
; then
message "${MESSAGE_COLOR}Unregistering package with ghc-pkg...${DEFAULT_COLOR}" &&
ghc-pkg unregister --force --global $PACKAGE
fi
|