Bug 549183

Summary: zypper in does not show p at the y/n prompt, when removing packages
Product: [openSUSE] openSUSE 11.2 Reporter: Juergen Weigert <jw>
Component: InstallationAssignee: Jan Kupec <jkupec>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P3 - Medium CC: ma, mls
Version: RC 1   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

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