Comment 6 for bug 508545

Revision history for this message
mariodebian (mariodebian) wrote : Re: Aptitude ignores preferences.d/*

Hi

I was looking at source code of apt:

apt-0.7.25.3ubuntu5/apt-pkg/policy.cc (line 283)

   vector<string> const List = GetListOfFilesInDir(Dir, "pref", true, true);

Second argument of GetListOfFilesInDir is extension filenames (defined in apt-pkg/contrib/fileutl.cc)

 preferences.d/* files must have .pref extension, example /etc/apt/preferences.d/local-pin.pref