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

Bug#503481: apt-get: apt.conf.d: broken append to list-items



Package: apt
Version: 0.7.16+b1
Severity: important

Hello,

the 'append to list' feature in apt.conf seems to be broken. Directives
are either ignored or unsorted.

As testcase I created 4 files (with equal permissions, of course) in
/etc/apt/apt.conf.d:
99test1:DPkg::Post-Invoke { "echo 99test1"; };
99test2:DPkg::Post-Invoke { "echo 99test2"; };
99test3:DPkg::Post-Invoke:: { "echo 99test3"; };
99test4:DPkg::Post-Invoke:: { "echo 99test4"; };

My complete apt.conf.d looks like this (ls style):
01autoremove    70debconf       90rkhunte-local  99test2  local
10apt-listbugs  90debsum-local  90rkhunter       99test3
20listchanges   90debsums       99test1          99test4

An apt-get run looks as follows:
...
Setting up ...
Generating missing debsums...
99test4
Updating rkhunter file properties database...
[ Rootkit Hunter version 1.3.2 ]
File updated: searched for 155 files, found 137
99test1
99test2

As you can see, directives without this ominous 'append to list' feature
mentioned in apt.conf(5) are ordered and executed as expected.
Directives with the 'append to list' feature are either not executed at
all (99test3) or out of order (99test4).


regards
   Mario
-- 
It is a capital mistake to theorize before one has data.
Insensibly one begins to twist facts to suit theories instead of theories
to suit facts.                   -- Sherlock Holmes by Arthur Conan Doyle

Attachment: signature.asc
Description: Digital signature


Reply to: