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

Re: ldconfig in a post(rm|inst) script



Hi Jakub,

> * Herbert Parentes Fortes Neto <hpfn@ig.com.br>, 2015-10-06, 09:33:
> >>>libgphoto2-6.postrm
> >>>remove)
> >>>	rm -f /usr/share/hal/fdi/information/20thirdparty/$PACKAGE.fdi || true
> >>>	rm -f /usr/share/hal/fdi/information/10freedesktop/10-camera-$PACKAGE.fdi || true
> >>>	rm -f /usr/share/hal/fdi/information/10freedesktop/10-camera-$PACKAGE-device.fdi || true
> >>>	ldconfig
> >>>	;;
> >>>
> >>>Lintian is quiet now.
> >>
> >>Wait, what's this?
> >>
> >>debhelper takes care of all of this, the old version added a bunch of 
> >>code replacing the '#DEBHELPER#' string, the new one adds a dpkg 
> >>trigger.
> >
> >So I can remove the file, right ?
> 
> debhelper takes care of calling ldconfig, but of course it won't rm any 
> files for you.

Thanks.

> 
> BTW, you almost certainly don't want to ignore errors by using these "|| 
> true" things.

What errors if using 'rm -f', right ?


regards,
-- 
Herbert Parentes Fortes Neto (hpfn)


Reply to: