[Aptitude-devel] Bug#821866: aptitude -t option does not work as documented; -t unstable download gets package from experimental

Manuel A. Fernandez Montecelo manuel.montezelo at gmail.com
Sat Jun 11 00:01:10 UTC 2016


Control: tags -1 + pending
Control: owner -1 !


Hi again,

2016-04-21 21:53 Manuel A. Fernandez Montecelo:
>Hi Josh,
>
>2016-04-20 01:50 Josh Triplett:
>>Package: aptitude
>>Version: 0.7.8-1
>>Severity: normal
>>
>>"man aptitude" says:
>>
>>>-t <release>, --target-release <release>
>>>    Set the release from which packages should be installed. For
>>>    instance, “aptitude -t experimental ...”  will install packages
>>>    from the experimental distribution unless you specify otherwise.
>>>    For the command-line actions “changelog”, “download”, and “show”,
>>>    this is equivalent to appending /<release> to each package named on
>>>    the command-line;
>>
>>However:
>>
>>/tmp$ aptitude -t unstable download apt-listchanges
>>Get: 1 http://ftp.us.debian.org/debian experimental/main amd64 apt-listchanges all 3.1 [101 kB]
>>Fetched 101 kB in 0s (301 kB/s)
>>
>>/tmp$ aptitude download apt-listchanges/unstable
>>Get: 1 http://ftp.us.debian.org/debian unstable/main amd64 apt-listchanges all 2.89 [95.7 kB]
>>Fetched 95.7 kB in 0s (267 kB/s)
>>
>>The same goes for "show" and "changelog".

The documentation was out of date since a change made a few years ago,
to match the rest of the commands and the apt tools.  The correct syntax
is "apt-listchanges/unstable", and -t/--target-release affects
APT::Default-Release.

Documentation fixed now, marking as +pending.


>Note for future review: this is probably the same issue as #693684, or
>at least should be considered at the same time.

Ditto.


Cheers.
-- 
Manuel A. Fernandez Montecelo <manuel.montezelo at gmail.com>



More information about the Aptitude-devel mailing list