X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=nokia-lintian%2Ftestset%2Fmaintainer-scripts%2Fdebian%2Fpostrm;fp=nokia-lintian%2Ftestset%2Fmaintainer-scripts%2Fdebian%2Fpostrm;h=0000000000000000000000000000000000000000;hb=bf47c4c43f1f5f4986e85b74fc82b32048aeb846;hp=a337bac9996c0bdb29f4248c4385f222b2079e2b;hpb=19fdce4b743853cee27edb892096cf64295c2874;p=maemian diff --git a/nokia-lintian/testset/maintainer-scripts/debian/postrm b/nokia-lintian/testset/maintainer-scripts/debian/postrm deleted file mode 100644 index a337bac..0000000 --- a/nokia-lintian/testset/maintainer-scripts/debian/postrm +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/bash - -update-alternatives --remove dummy /usr/bin/dummy-alternative - -# Normally read in a maintainer script is not kosher, but here we're going -# to do it only if debconf doesn't exist. -if ! test -f /usr/share/debconf/confmodule ; then - echo "Hit enter" - read -fi - -# neither of the following should be detected as postrm-unsafe-ldconfig -# intended, without quotes - if [ "$1" = remove ]; then - ldconfig - fi -# reversed, many whitespace -if [ 'remove' = "$1" ] -then - - ldconfig -fi - -[ "remove" ="$1" ] && ldconfig - -update-rc.d bar remove - -# Shouldn't provoke an error despite no invoke-rc.d. -echo "/etc/init.d/package stop to stop something" - -# Shouldn't require a ucf dependency. Unfortunately, right now that's -# just because postrm isn't checked, not because we ensure that the -# invocation is conditional. -if which ucf >/dev/null; then - ucf --purge /etc/foo.conf -fi - -# This isn't allowed. -rm /tmp/foo /dev/device -rm /dev/device1 - -# But this is okay. -rm /tmp/foo > /dev/null - -# Not allowed here even with remove. -install-sgmlcatalog --remove package