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

Bug#176108: apt: mistake in prefernces file location not caught



Package: apt
Version: 0.5.4
Severity: minor
File: /usr/share/man/man8/apt-get.8.gz

gentlemen, if one messes up with the -o here, no error is raise, no
warning is given

apt-get -o Dir::Etc::Preferences=some/invalid/place \
-s install libc6
...Building Dependency Tree... 50%
Building Dependency Tree... 50%
(funny, same line repated)

The following extra packages will be installed:
  libc6-dev locales
3 packages upgraded, 0 newly installed, 0 to remove and 685  not upgraded.
Inst libc6-dev (2.3.1-9 Debian:unstable) []
Inst locales (2.3.1-9 Debian:unstable) []
Inst libc6 (2.3.1-9 Debian:unstable)
Conf libc6 (2.3.1-9 Debian:unstable)
Conf libc6-dev (2.3.1-9 Debian:unstable)
Conf locales (2.3.1-9 Debian:unstable)

at least make a note that no checks are made on the apt-get and
apt.conf man pages.

wait! some checks are indeed made:
# apt-get -o Dir::Etc::Preferences=$PWD \
-s install libc6

E: Read error - read (21 Is a directory)

so dirs will be caught but not files!

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux debian 2.4.19-k7 #1 Sun Oct 6 20:29:56 EST 2002 i686
Locale: LANG=zh_TW.Big5, LC_CTYPE=zh_TW.Big5

Versions of packages apt depends on:
ii  libc6                        2.2.5-15    GNU C Library: Shared libraries an
ii  libstdc++2.10-glibc2.2       1:2.95.4-12 The GNU stdc++ library

-- no debconf information




Reply to: