Bug 390027

Summary: License pager interferes with zypper operation
Product: [openSUSE] openSUSE 11.0 Reporter: Hans Petter Jansson <hpj>
Component: libzyppAssignee: Josef Reidinger <jreidinger>
Status: RESOLVED FIXED QA Contact: Duncan Mac-Vicar <dmacvicar>
Severity: Critical    
Priority: P5 - None CC: captain.magnus, sontek, tschmidt
Version: Beta 1   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Hans Petter Jansson 2008-05-14 00:12:43 UTC
When I go and do a "zypper dup", and it displays the flash-player license, it now uses a pager ("more", I guess) to display it. When I reach the end of the license, zypper quits claiming I disagreed with it. I see the

Continue [yes/NO]:

prompt, but I'm not given a chance to respond to it.
Comment 1 Jan Kupec 2008-05-14 09:16:51 UTC
As for the 'Continue' prompt, the licenses are displayed _after_ it, so you should have been able to respond to it, wasn't that so?
Comment 2 Jan Kupec 2008-05-14 09:17:57 UTC
*** Bug 390044 has been marked as a duplicate of this bug. ***
Comment 3 John Anderson 2008-05-14 15:37:12 UTC
I get the same issue, It never prompts for agreement, it just ends.  I had to use zypper dup -l  (auto agree to licenses) to update.   
Comment 4 Hans Petter Jansson 2008-05-14 20:35:24 UTC
Right, I guess the "Continue" prompt wasn't the problem, but the agree-to-license prompt. The quit message claims I disagreed with it. The -l workaround worked for me as well.
Comment 5 Josef Reidinger 2008-05-14 20:46:57 UTC
Can you try if zypper in -f flash-player (e.g.) also do it? or only dup?
Comment 6 Hans Petter Jansson 2008-05-14 21:11:36 UTC
It happens with "zypper in -f flash-player" too.
Comment 7 Hans Petter Jansson 2008-05-14 21:21:53 UTC
The actual output from a failed attempt looks like this:

---

linux:~ # zypper in -f flash-player
Reading installed packages...

The following package is going to be reinstalled:
  flash-player 

Overall download size: 4.8 M. No additional space will be used or freed after the operation.
Continue? [YES/no]: 
In order to install this package, you must agree to terms of the above license. Continue? [yes/NO]: Aborting installation due to user disagreement with flash-player package license.
linux:~ # 

---

(I just hit enter at the first prompt).
Comment 8 Josef Reidinger 2008-05-15 12:56:39 UTC
I fixed it in svn.
Thanks for report. closing duplicated terminal fd confused C++ iostreams, so I handle it differently.
Comment 9 Josef Reidinger 2008-05-20 06:42:19 UTC
done in zypper 0.11.3-4
Comment 10 Josef Reidinger 2008-05-20 06:45:36 UTC
*** Bug 391422 has been marked as a duplicate of this bug. ***
Comment 11 Josef Reidinger 2008-05-22 11:25:13 UTC
*** Bug 393419 has been marked as a duplicate of this bug. ***
Comment 12 Jan Kupec 2008-05-26 09:27:02 UTC
*** Bug 394428 has been marked as a duplicate of this bug. ***