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

Bug#563121: dh_installdefoma leads to buggy maintainer scripts



Keith Packard <keithp@keithp.com> (30/12/2009):
> > I'm about to QA-upload defoma with this change in the various
> > debhelper-files/* files, but I wanted to open this bugreport for
> > reference.

Fortunately, I didn't do so, that wouldn't have helped (yay for
sleeping before uploading :)).

> Here's a patch which I've used to build new fontconfig packages
> which should survive the absence of defoma.

I don't think it would help.

> -  test -x `which defoma-app` && defoma-app update #PACKAGE#
> +  which defoma-app >/dev/null && defoma-app update #PACKAGE#

$ which doesnotexist >/dev/null && echo be happy
$ echo $?
1

So the maintainer script bits generated by dh_installdefoma would
still lead to non-0 exits.

Current/common practice within debhelper seems to be:
| if [ -x "`which foo 2>/dev/null`" ]; then…

I think I'm going to upload with such a change once I'm up (for real,
not vaguely opening eyes).

Mraw,
KiBi.

Attachment: signature.asc
Description: Digital signature


Reply to: