[Bug 649248] New: zypper buffers keystrokes
https://bugzilla.novell.com/show_bug.cgi?id=649248 https://bugzilla.novell.com/show_bug.cgi?id=649248#c0 Summary: zypper buffers keystrokes Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Installation AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: jw@novell.com QAContact: jsrain@novell.com Found By: --- Blocker: --- I had a hanging download, and pressed enter to see, if zypper was still alive. ] Retrieving: perl-Package-DeprecationManager-0.04-4.1.x86_64.rpm [error (0 B/s)] ] Retrieving: perl-Package-DeprecationManager-0.04-4.1.x86_64.rpm [error (0 B/s)] ] ] Retrieving: perl-Package-DeprecationManager-0.04-4.1.x86_64.rpm [error (0 B/s)] ] Failed to download /x86_64/perl-Package-DeprecationManager-0.04-4.1.x86_64.rpm ] from http://download.opensuse.org/repositories/devel%3a/languages%3a/perl/openSUS... ] Abort, retry, ignore? [a/r/i/?] (a): ] ] Problem occured during or after installation or removal of packages: ] Installation aborted by user The repeated 'Retrieving: ...' lines were caused by me pressing enter, this showed me that zypper was still alive. But then, when zypper finally wanted to prompt me how to continue, I had no choice, the default (a) was taken, due to pressing enter earlier. Suggested fix: Zypper should clear the keyboard buffer, before showing a prompt. -- 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=649248
https://bugzilla.novell.com/show_bug.cgi?id=649248#c
Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=649248
https://bugzilla.novell.com/show_bug.cgi?id=649248#c1
Ján Kupec
https://bugzilla.novell.com/show_bug.cgi?id=649248
https://bugzilla.novell.com/show_bug.cgi?id=649248#c2
--- Comment #2 from Juergen Weigert
https://bugzilla.novell.com/show_bug.cgi?id=649248
https://bugzilla.novell.com/show_bug.cgi?id=649248#c3
Ján Kupec
https://bugzilla.novell.com/show_bug.cgi?id=649248
https://bugzilla.novell.com/show_bug.cgi?id=649248#c4
Ján Kupec
https://bugzilla.novell.com/show_bug.cgi?id=649248
https://bugzilla.novell.com/show_bug.cgi?id=649248#c5
--- Comment #5 from Juergen Weigert
https://bugzilla.novell.com/show_bug.cgi?id=649248
https://bugzilla.novell.com/show_bug.cgi?id=649248#c6
--- Comment #6 from Ján Kupec
Maybe put it inside zypper.out().prompt() ?
That was my first thought, too, but i would need to pass the 'non_interactive' flag there anyway, so i chose this solution instead. I guess in the future it will be worth to factor out the prompt handling into a Prompt class to clean it up. Some of the Prompt methods would also take care of clearing the buffer.
stm should not be in line-buffered mode, to catch chars after `\n', probably not worth it.
If there is a reasonable easy way to put it in non-line-buffered mode, maybe we could try it. But is there? -- 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.
participants (1)
-
bugzilla_noreply@novell.com