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

Bug#678125: [apt] [apt-get] --force-yes should imply/set --yes (but currently does not)



Package: apt
Version: 0.9.6
Severity: normal

--- Please enter the report below this line. ---
In this case --force-yes alone does not apply maximum force:

=======================================================================
# DEBIAN_FRONTEND=noninteractive apt-get install foobar --force-yes
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
  python-support
Use 'apt-get autoremove' to remove it.
The following NEW packages will be installed:
  foobar
0 upgraded, 1 newly installed, 0 to remove and 6 not upgraded.
Need to get 4,338 B of archives.
After this operation, 33.8 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  foobar
Install these packages without verification [y/N]? ^C
=======================================================================

When adding --yes, --force-yes actually works as advertised:

=======================================================================
# DEBIAN_FRONTEND=noninteractive apt-get install foobar --yes --force-yes
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
  python-support
Use 'apt-get autoremove' to remove it.
The following NEW packages will be installed:
  foobar
0 upgraded, 1 newly installed, 0 to remove and 6 not upgraded.
Need to get 4,338 B of archives.
After this operation, 33.8 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  foobar
Get:1 http://example.org/foo/ wavecon/main foobar all 1.2 [4,338 B]
Fetched 4,338 B in 0s (8,862 B/s)
Selecting previously unselected package foobar.
(Reading database ... 25680 files and directories currently installed.)
Unpacking foobar (from .../foobar_1.2_all.deb) ...
Setting up foobar (1.2) ...
OK
=======================================================================

Therefore please make --force-yes set --yes internally.  Thanks!


--- System information. ---
Architecture: amd64
Kernel:       Linux 3.2.0-2-amd64

Debian Release: wheezy/sid
  500 unstable        ftp.de.debian.org
  500 testing         http.us.debian.org

--- Package information. ---
Depends                       (Version) | Installed
=======================================-+-=============
libapt-pkg4.12               (>= 0.9.6) | 0.9.6
libc6                          (>= 2.4) | 2.13-33
libgcc1                    (>= 1:4.1.1) | 1:4.7.1-1
libstdc++6                     (>= 4.6) | 4.7.1-1
debian-archive-keyring                  | 2012.4
gnupg                                   | 1.4.12-4


Package's Recommends field is empty.

Suggests        (Version) | Installed
=========================-+-===========
aptitude                  | 0.6.8-1
 OR synaptic              | 0.75.12
 OR wajig                 |
dpkg-dev                  | 1.16.4.3
apt-doc                   |
xz-utils                  | 5.1.1alpha+20110809-3
python-apt                | 0.8.4



Reply to: