[Bug 392676] New: zypper: Impossible to accept agreements from the command-line.
https://bugzilla.novell.com/show_bug.cgi?id=392676 Summary: zypper: Impossible to accept agreements from the command-line. Product: openSUSE 11.0 Version: Factory Platform: i686 OS/Version: openSUSE 11.0 Status: NEW Severity: Normal Priority: P5 - None Component: Usability AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: martin@martinm-76.dk QAContact: qa@suse.de Found By: --- Since Flash was not in the LiveCD KDE image I use to install openSUSE 11.0 rc1 I wanted to install it afterwards. zypper search flash found it just fine, but when I tried to install it, and said yes to install the package, an agreement page came up, shown with less. As far as I can tell, the only way to get out of this page is to press 'q', which makes zypper abort with a message about the agreement not being accepted. I can get the needed result via YaST2, but zypper should be able to do it as well. Could it be that the keyboard buffer is not cleared after exiting less and my 'q' gets fed to zypper as well? Pressing either of 'j' og 'y' from inside less doesn't accept the agreement.. The actual proceeding is listed below: linux:/home/martin # zypper in flash-player Læser installerede pakker... Den følgende NYE pakke vil blive installeret: flash-player Samlet downloadstørrelse: 4,8 M. Efter transaktionen vil yderligere 15,4 M blive brugt. Vil du fortsætte? [JA/nej]: j For at installere denne pakke, må du acceptere betingelserne i ovenstående licensaftale. Vil du fortsætte? [ja/NEJ]: Afbryder installationen, da bruger ikke accepterer licensaftalen flash-player pakke. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=392676
User pczanik@genesi-usa.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=392676#c1
peter czanik
https://bugzilla.novell.com/show_bug.cgi?id=392676
Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=392676
Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=392676
User jkupec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=392676#c2
Ján Kupec
zypper search flash found it just fine, but when I tried to install it, and said yes to install the package, an agreement page came up, shown with less.
As far as I can tell, the only way to get out of this page is to press 'q',
Yes, i realize by now, that there is no hint for the user about what to do to quit the pager. We'll keep this bug in order to fix this. Maybe it would make sense to fix this even though the message will not be translated (too late for that), since the license texts are not available in many languages anyway :O)
which makes zypper abort with a message about the agreement not being accepted.
This has been fixed already in bug 390027.
Could it be that the keyboard buffer is not cleared after exiting less and my 'q' gets fed to zypper as well?
The problem was something with cloning the stdin for the less process. Using the same stdin as zypper solved it. I don't know the details, Josef knows more :O) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=392676
User martin@martinm-76.dk added comment
https://bugzilla.novell.com/show_bug.cgi?id=392676#c3
--- Comment #3 from Martin Møller
https://bugzilla.novell.com/show_bug.cgi?id=392676
User jkupec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=392676#c4
--- Comment #4 from Ján Kupec
I see, so some zypper version after openSUSE 11.0 rc1 will allow you to accept the license (or decline properly for that matter)? And this will be in the final openSUSE 11.0, right?
Yes, rc1 will have the fix (and yes, that will be in final :O), it should be even in factory right now (zypper>=0.11.3-4).
I wonder if this is one of those cases where 'more' is more :) as it quits when you get to the end. Some kind of information about how to proceed would be good, although most people using zypper from the CLI probably know this.
Yes, most of them will recognize more or less, but not all of them :O( And it's a bit of additional work to check what pager is available and display the hint accordingly, so maybe we should support only one pager (currently zypper uses less and falls back to more if less is not there).
The '-l' parameter above doesn't seem to be mentioned on the 'zypper --help' screen? Is it hidden for a reason? At least I couldn't find it in my scruteny of the options, twice over.
zypper [--]help shows global options and commands. Try 'zypper help <command>' :O) Check also man zypper and zypper wiki at opensuse.org. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=392676
User jreidinger@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=392676#c5
Josef Reidinger
(In reply to comment #3 from Martin Møller)
I wonder if this is one of those cases where 'more' is more :) as it quits when you get to the end. Some kind of information about how to proceed would be good, although most people using zypper from the CLI probably know this.
Yes, most of them will recognize more or less, but not all of them :O( And it's a bit of additional work to check what pager is available and display the hint accordingly, so maybe we should support only one pager (currently zypper uses less and falls back to more if less is not there).
that's not correct. Now it use PAGER enviroment variable for pager to use (so you can use what you want). If this variable is not set then is used more which is ensured by Linux common base. So after fix (allready in svn), you must exit pager (maybe some help text can be added after license, but it is hard because we don't know what pager user use) and then you asked to cnfirm. Is something else needed? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=392676
User jreidinger@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=392676#c6
Josef Reidinger
https://bugzilla.novell.com/show_bug.cgi?id=392676
User coolo@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=392676#c7
Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=392676
User jreidinger@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=392676#c8
--- Comment #8 from Josef Reidinger
https://bugzilla.novell.com/show_bug.cgi?id=392676
Josef Reidinger
https://bugzilla.novell.com/show_bug.cgi?id=392676
Stephan Binner
https://bugzilla.novell.com/show_bug.cgi?id=392676
User jreidinger@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=392676#c9
Josef Reidinger
participants (1)
-
bugzilla_noreply@novell.com