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

Bug#784090: Adding extensions to Dir::Ignore-Files-Silently doesn't work



Package: apt
Version: 1.0.9.8
Severity: minor

Before modifying a config file, I like to make a backup, either with cp
-a or with dpkg-divert --rename.

By default dpkg-divert diverts a file with the ".distrib" extension. So
I tried to make apt silently ignore this extension, but it didn't work.

I created a file called /etc/apt/apt.conf.d/00ignore-files-silently with
the contents:

// I like to rename some files before modifying them
Dir::Ignore-Files-Silently:: "\.distrib$";

The config snippet is indeed accepted by apt :

$ apt-config dump | grep -i silent
Dir::Ignore-Files-Silently "";
Dir::Ignore-Files-Silently:: "~$";
Dir::Ignore-Files-Silently:: "\.disabled$";
Dir::Ignore-Files-Silently:: "\.bak$";
Dir::Ignore-Files-Silently:: "\.dpkg-[a-z]+$";
Dir::Ignore-Files-Silently:: "\.save$";
Dir::Ignore-Files-Silently:: "\.orig$";
Dir::Ignore-Files-Silently:: "\.distUpgrade$";
Dir::Ignore-Files-Silently:: "\.distrib$";

But I still have a warning about
"/etc/apt/apt.conf.d/50unattended-upgrades.distrib" after each apt command.

Additionally, since ".distrib" is the default extension added by
dpkg-divert, maybe it should be added to the built-in list of silently
ignored extensions. I can report a separate bug with severity wishlist
if you think this is necessary.

Regards,

-- 
Raphaël Halimi

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: