Bug#929165: How to use rm_conffile to remove files that contain empty " ", comma "," and wildcard "*"?
- To: 929165@bugs.debian.org
- Subject: Bug#929165: How to use rm_conffile to remove files that contain empty " ", comma "," and wildcard "*"?
- From: Andreas Metzler <ametzler@bebt.de>
- Date: Sun, 7 Mar 2021 08:47:05 +0100
- Message-id: <[🔎] YESE+eGtq1IrX+6x@argenau.bebt.de>
- Reply-to: Andreas Metzler <ametzler@bebt.de>, 929165@bugs.debian.org
- In-reply-to: <20210307122613.52fd85cc7efb2a7ab00d3a78__43520.200338547$1615089630$gmane$org@iijmio-mail.jp>
- References: <155335181021.29109.561919918315974813.reportbug@hp> <20210307122613.52fd85cc7efb2a7ab00d3a78__43520.200338547$1615089630$gmane$org@iijmio-mail.jp> <155335181021.29109.561919918315974813.reportbug@hp>
On 2021-03-07 Hideki Yamane <henrich@iijmio-mail.jp> wrote:
> X-debbugs-CC: debian-devel@lists.debian.org
> I've tried to remove files that was accidentally containts empty " ",
> comma "," and wildcard "*" via rm_conffile from dpkg-maintscript-helper.
> However, it returns an error like below.
> > dh_installdeb: error: The current conffile path for rm_conffile must be present and absolute, got '/etc/apt/trusted.gpg.d/ubuntu-keyring-2016-dbgsym.gpg,
> I've specified it like below.
> > # cat debian/ubuntu-dbgsym-keyring.maintscript
> > rm_conffile '/etc/apt/trusted.gpg.d/ubuntu-keyring-2016-dbgsym.gpg, *'
[...]
> How to use rm_conffile to remove such files that contains empty, comma
> and * in its filenames?
Hello,
I think that might be a dh_installdeb error, it seems to check whether
the first character is a '/', and does not account for possible quoting
characters.
This might work around this
rm_conffile /etc/apt/trusted.gpg.d/ubuntu-keyring-2016-dbgsym.gpg,\ \*
BTW you should really specify [prior-version and [package].
cu Andreas
--
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'
Reply to: