xsuchy/fedora-upgrade — pull request #9 by lzap (2013-12-18 09:57:47+00:00)
Title: Clear the stdin buffer before question

For some reason, upgrade was cancelled for me twice today. In both cases thanks
to extra characters in stdin buffer when yum (then rpmconf) were cancelled.

This patch reads 10000 characters in one second to clear the stdin buffer prior
to asking. This is standard practice which prevents this kinds of errors.