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

Re: Renaming packages: maintscripts



On Sun, Sep 02, 2012 at 11:26:34PM +0100, Ben Hutchings wrote:
> > if postrm=$(dpkg-query -c autofs5 postrm 2>/dev/null); then
> > 	rm -f "$postrm"
> > fi

> > Not sure about cleaner, but that's the supported dpkg interface.

> That certainly seems a bit cleaner than assuming we know what the dpkg
> database looks like it.  However the manual page says 'Warning: this
> command is deprecated, please switch to use --control-list and
> --control-show instead.'  Those options don't expose any filenames at
> all!

Hmm.  Perhaps the manpage needs updating, then; I'm sure this is the
interface that's being recommended for coping with multiarch-related changes
to control file paths.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek@ubuntu.com                                     vorlon@debian.org

Attachment: signature.asc
Description: Digital signature


Reply to: