Source: dictionaries-common
Source-Version: 1.28.0
Severity: important
User: debian-d...@lists.debian.org
Usertags: dpkg-db-access-blocker

Hi!

This package contains a script [S], which directly accesses the dpkg
internal database. Instead of using one of the public interfaces
provided by dpkg. The code should either be removed, as it seems it's
handling an ancient case, or updated to use «dpkg-query -W» to check
whether the package is installed (ex. by using the db:Status-Status
pseudo field).

  [S] scripts/system/dc-debconf-default-value.pl

This is a problem for several reasons, because even though the layout and
format of the dpkg database is administrator friendly, and it is expected
that those might need to mess with it, in case of emergency, this
“interface” does not extend to other programs besides the dpkg suite of
tools. The admindir can also be configured differently at dpkg build or
run-time. And finally, the contents and its format, will be changing in
the near future.

Thanks,
Guillem

Reply via email to