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

Bug#594694: apt: N: Ignoring file 'on_hold' in directory '/etc/apt/sources.list.d/' as it has no filename extension



package apt
severity 594694 minor
tag 594694 fixed
thanks

Hi Sedat Dilek,

first of all: Thanks for your report!

2010/8/28 Sedat Dilek <sedat.dilek@googlemail.com>:
> As you can see on_hold is a directory *not* a file.
> Either the checking is wrong or the error-message:
>
> N: Ignoring file 'on_hold' in directory '/etc/apt/sources.list.d/' as
> it has no filename extension

Mhh. Yes, APT doesn't expect directories in these directories
(sources.list.d, apt.conf.d, preferences.d and trusted.gpg.d),
so basically we have again a few options:
a) ignore always silently directories (pre 0.8.0)
b) complain still with this "wrong" message
c) complain with a new message

I think we can life with b) for squeeze as i will be stoned otherwise
for adding a new untranslated message. ;)

Regarding the message itself, you can trick APT by renaming the
directory to on_hold.list, moving the directory out of this directory
or dropping the directory idea completely and rename just the files,
e.g. by calling them "something.list.onhold", but in that case you
need to add the ".onhold" extension to the list of silently ignored ones:
echo 'Dir::Ignore-Files-Silently:: "\.onhold$";' >
/etc/apt/apt.conf.d/99ignoreonholdfiles

( adding "on_hold" should work, too, but unfortunately it doesn't
  thanks to a forgotten line, which will be fixed soon )

> I see this on "apt-get {update,dist-upgrade}".

btw: You will see it also in most apt-cache commands.


Best regards

David Kalnischkies



Reply to: