[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Possibly quite a few bugs?



On Wed, Oct 04, 2000 at 12:24:32AM +0200, Josip Rodin wrote:
> > case "$1" in
> >   remove|upgrade|deconfigure)
> >     install-info --quiet --remove /usr/info/realtimebattle.info
> >   ;;
> > 
> >   failed-upgrade)
> >   ;;
> > 
> >   *)
> >      echo "prerm called with unknown argument \`$1'" >&2
> >      exit 0
>        ~~~~~~
> >   ;;
> > esac
> > 
> > # Automatically added by dh_installdocs
> > if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/realtimebattle ]; then
> >         rm -f /usr/doc/realtimebattle
> > fi
> > # End automatically added section
> > # Automatically added by dh_installdocs
> > if [ "$1" = remove -o "$1" = upgrade ] && \
> >    command -v install-docs >/dev/null 2>&1; then
> >         install-docs -r realtimebattle
> > fi
> > # End automatically added section
> > 
> > Everything looks fine, right? Note if this package is purged or removed,
> > neither of the Automatically added lines will exec. The only indication I
> > could find as to why not, lead to me believe the quotes were not parsed
> > correctly.
> 
> Notice the underlined `exit 0' above. It will cause the whole script to
> exit, not just the case statement as one might think.

Um. I can't read. Ignore what I wrote above.

I don't see[1] why would it fail to run the debhelper-added parts, since
prerm is run with $1 = "remove" on removing or purging the package.

[1] then again, I can't read, as shown above ;)

-- 
Digital Electronic Being Intended for Assassination and Nullification



Reply to: