Mailinglist Archive: opensuse-bugs (4510 mails)

< Previous Next >
[Bug 966053] New: zypper -n does not 'really' apply 'default answers' as documented
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Wed, 10 Feb 2016 14:18:46 +0000
  • Message-id: <bug-966053-21960@http.bugzilla.opensuse.org/>
http://bugzilla.opensuse.org/show_bug.cgi?id=966053


Bug ID: 966053
Summary: zypper -n does not 'really' apply 'default answers' as
documented
Classification: openSUSE
Product: openSUSE Tumbleweed
Version: 2015*
Hardware: Other
OS: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: libzypp
Assignee: zypp-maintainers@xxxxxxxxxxxxxxxxxxxxxx
Reporter: dimstar@xxxxxxxxxxxx
QA Contact: qa-bugs@xxxxxxx
Found By: ---
Blocker: ---

zypper -n is documented to:

-n, --non-interactive
Switches to non-interactive mode. In this mode zypper doesn’t ask
user to type answers to various prompts, but uses default answers
automatically. The behavior of this option is somewhat different
than that of options like --yes, since zypper can answer different
answers to different questions.


I understand this in a way that the behavior will be equal to the user simply
pressing 'enter' at any prompt, following the default answers in interactive
mode.

But seems there are slight discrepancies:

Example:

zypper -n rm pkg-does-not-exist command-not-found
Loading repository data...
Reading installed packages...
'pkg-does-not-exist' not found in package names. Trying capabilities.
No provider of 'pkg-does-not-exist' found.
rpm -q command-not-found
command-not-found-0.1.0+20151023-1.1.noarch

vs

zypper rm pkg-does-not-exist command-not-found
Loading repository data...
Reading installed packages...
'pkg-does-not-exist' not found in package names. Trying capabilities.
No provider of 'pkg-does-not-exist' found.
Resolving package dependencies...

The following package is going to be REMOVED:
command-not-found

1 package to remove.
After the operation, 96.6 KiB will be freed.
Continue? [y/n/? shows all options] (y):
(1/1) Removing command-not-found-0.1.0+20151023-1.1
............................................................................................[done]
Installation has completed with error.
rpm -q command-not-found
package command-not-found is not installed

(note: I simply pressed ENTER at the prompt, the default answer was already 'y'
to continue with the proposal)

My expectation would be in the first case that the pkg's that existed are being
removed as requested, the others are warned about.

--
You are receiving this mail because:
You are on the CC list for the bug.
< Previous Next >
Follow Ups