Bug 549183 - zypper in does not show p at the y/n prompt, when removing packages
Summary: zypper in does not show p at the y/n prompt, when removing packages
Status: RESOLVED FIXED
Alias: None
Product: openSUSE 11.2
Classification: openSUSE
Component: Installation (show other bugs)
Version: RC 1
Hardware: Other Other
: P3 - Medium : Normal (vote)
Target Milestone: ---
Assignee: Jan Kupec
QA Contact: Jiri Srain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-22 14:00 UTC by Juergen Weigert
Modified: 2010-02-23 14:36 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Weigert 2009-10-22 14:00:00 UTC
On a default installation, where postfix is installed, test this:
# zypper in sendmail
Resolving package dependencies...

The following NEW packages are going to be installed:
  m4 sendmail 

The following package is going to be REMOVED:
  postfix 

2 new packages to install, 1 to remove.
Overall download size: 1.4 MiB. After the operation, additional 497.0 KiB will be used.
Continue? [y/n/?] (y): p
Resolving package dependencies...

Problem: sendmail-8.14.3-50.78.x86_64 conflicts with postfix provided by postfix-2.6.1-1.1.x86_64
 Solution 1: deinstallation of postfix-2.6.1-1.1.x86_64
 Solution 2: do not ask to install a solvable providing sendmail

Choose from above solutions by number or cancel [1/2/c] (c): c
c

Typing p at the prompt works as expected, but the user has no chance to access the problem description, as p is not advertised.

Source RPM: zypper-1.2.5-1.2.src.rpm
Build Date: Tue Oct 13 00:27:29 2009
Comment 1 Jan Kupec 2009-10-23 10:51:29 UTC
Aaah, stupid mistake!!

       popts.setOptions(_("y/n/p/v/a/r/m/d/g"), 0);
-      popts.setShownCount(2);
+      popts.setShownCount(3);
       if (!(zypper.runtimeData().force_resolution && show_p_option))
         popts.disable(2);

Thanx for reporting! fixed in git, will be in next zypper, hopefully in time for the 11.2 GM
Comment 2 Stephan Binner 2009-11-01 09:19:12 UTC
This bug report is mentioned in 11.2 RC2's zypper changelog