Fix the newly introduced method GetListOfFilesInDir to not accept every
authorDavid Kalnischkies <kalnischkies@gmail.com>
Sat, 16 Jan 2010 22:09:42 +0000 (23:09 +0100)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Sat, 16 Jan 2010 22:09:42 +0000 (23:09 +0100)
commite29a6bb14dcc004d174ad8502b76623139fbee06
tree246376ac5f6e5ce15c819086a5a13f27a20176eb
parentdaee881bf82d23197d991227fa0ab36b918b4323
Fix the newly introduced method GetListOfFilesInDir to not accept every
file if no extension is enforced (= restore old behaviour). (Closes: #565213)

This commit includes also:
* apt-pkg/policy.cc:
  - accept also partfiles with "pref" file extension as valid
* apt-pkg/contrib/configuration.cc:
  - accept also partfiles with "conf" file extension as valid
* doc/apt.conf.5.xml:
  - reorder description and split out syntax
  - add partfile name convention (Closes: #558348)
* doc/apt_preferences.conf.5.xml:
  - describe partfile name convention also here

And a lovely test application of course.
apt-pkg/contrib/configuration.cc
apt-pkg/contrib/fileutl.cc
apt-pkg/contrib/fileutl.h
apt-pkg/policy.cc
debian/changelog
doc/apt.conf.5.xml
doc/apt_preferences.5.xml
test/libapt/getlistoffilesindir_test.cc [new file with mode: 0644]
test/libapt/makefile
test/libapt/run-tests.sh