Bug 670675 - yast2-scanner: useless "KB" stuff in progress bar going over 100%
Summary: yast2-scanner: useless "KB" stuff in progress bar going over 100%
Status: RESOLVED FIXED
Alias: None
Product: openSUSE 11.4
Classification: openSUSE
Component: YaST2 (show other bugs)
Version: RC 1
Hardware: All Other
: P4 - Low : Minor with 1 vote (vote)
Target Milestone: Factory
Assignee: Johannes Meixner
QA Contact: Jiri Srain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-09 17:30 UTC by Bernhard Wiedemann
Modified: 2011-02-10 14:22 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
screenshot of misbehaving progress bar (45.83 KB, image/png)
2011-02-09 17:30 UTC, Bernhard Wiedemann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bernhard Wiedemann 2011-02-09 17:30:53 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.
Comment 1 Johannes Meixner 2011-02-10 08:25:48 UTC
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...
Comment 2 Johannes Meixner 2011-02-10 14:22:44 UTC
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