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

Bug#742578: --simulate (etc) dropped from apt



Control: reopen -1 0.9.11

On Tue, Oct 14, 2014 at 07:28:54PM +1100, Zenaan Harkness wrote:
> Note that the comment from Ritesh below (above) "The newer versions of
> apt have completely replaced --simulate with -s." is incorrect, as far
> as I can see

Yeap, that is wrong, we still support -s and co, but …

> $ apt -s
> E: Command line option 's' [from -s] is not known.
> $ apt --simulate
> E: Command line option --simulate is not understood
> $ apt-get -s
> E: Command line option 's' [from -s] is not known.
> $ apt-get --simulate
> E: Command line option --simulate is not understood

… not in the way you are trying it here.

Since 0.9.11 apt is a bit stricter in its parsing of the commandline
– for the benefit of the user – in that it doesn't allow options anymore
for commands where they don't have an effect.

So, "apt-get dist-upgrade -s" works, but e.g. "apt-get download -s"
doesn't (Imagine the suprised look and dangerous effects if you run
a command with -s, but the command doesn't understand it and acts normal
as a consequence…).  It doesn't work for "source" at the moment either,
but that is a bug in sofar as there is actually code in the source
command to handle the option, so we can accept it - it was simply
overlooked in the rework.

I am going to fix that to unbreak the previous usecases, even though
I would advice using --print-uris here as what source does with the
simulation flag is really not a simulation compared to what other
commands like install do with it.


Best regards

David Kalnischkies

Attachment: signature.asc
Description: Digital signature


Reply to: