Bugzilla – Bug 670675
yast2-scanner: useless "KB" stuff in progress bar going over 100%
Last modified: 2011-02-10 14:22:44 UTC
Created attachment 413084 [details] screenshot of misbehaving progress bar yast2-scanner shows a progress bar when /var/lib/YaST2/scanner_database.ycp does not yet exist and is created. However, the progress bar will expect 585.9 KB to be 100% while the file is created with 891164 bytes. Maybe it is more reliable to go by the number of records, which is 3088 today and might be easier to autodetect.
I would like to show a plain progress bar without the "KB" stuff which does not make any sense here. This "KB" stuff is an artificial oversophisticated automatic "addon" which is shown only for the GTK UI. I cannot switch this "KB" nonsense off in my YCP code which calls this progress bar widget. I must specify the final file size (i.e. what is 100%) in advance when I call this progress bar widget but at this time I don't know the final file size. I only know the file size after scanner_database.ycp was created but its size depends on the installed scanner driver packages so that in the end it is impossible to specify the final file size in advance. As always I will try again to somehow work around the various shortcomings of the widgets in YaST...
Fixed in yas2-scanner 2.20.1 committed as YaST SVN revision 63392 submitted to YaST:Head via submitrequest 60512 and forwarded this to openSUSE:Factory via submitrequest 60514