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

Bug#807144: Undeclared dependency to `debianutils (which)' in apt-key



Package: apt
Version: 1.1.3

In apt's `apt-key` script (cmdline/apt-key.in), there are multiple calls
to the external program `which`, which is often supplied by the
`debianutils` package on Debianish systems.

However, apt's control file (debian/control) doesn't claim it to be
dependent on the package. `apt remove debianutils` also doesn't prepare
to remove `apt`, so there aren't any indirect dependencies either.

A fast check on the script itself indicates that all `which` calls are
used to determine the existence of certain commands like gpg, gpg2 and
wget, and the output is discarded. Therefore, replacing all those
`which` with `type` (XSI) or `command -v` (POSIX) is perfectly fine and
dash-compatible. This also gives a trivial performance boost due to
reduced calls to external programs.

-- 
Regards,

Arthur2e5 (0x222D7BDA)

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: