Mailinglist Archive: yast-commit (939 mails)
| < Previous | Next > |
[yast-commit] r53008 - in /trunk/installation: VERSION package/yast2-installation.changes src/clients/inst_deploy_image.ycp
- From: locilka@xxxxxxxxxxxxxxxx
- Date: Thu, 06 Nov 2008 15:35:51 -0000
- Message-id: <20081106153551.EB0A4338F0@xxxxxxxxxxxxxxxx>
Author: locilka
Date: Thu Nov 6 16:35:51 2008
New Revision: 53008
URL: http://svn.opensuse.org/viewcvs/yast?rev=53008&view=rev
Log:
- Fixed progress (SlideShow) information about images being
deployed (bnc #442286).
- 2.17.30
Modified:
trunk/installation/VERSION
trunk/installation/package/yast2-installation.changes
trunk/installation/src/clients/inst_deploy_image.ycp
Modified: trunk/installation/VERSION
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/installation/VERSION?rev=53008&r1=53007&r2=53008&view=diff
==============================================================================
--- trunk/installation/VERSION (original)
+++ trunk/installation/VERSION Thu Nov 6 16:35:51 2008
@@ -1 +1 @@
-2.17.29
+2.17.30
Modified: trunk/installation/package/yast2-installation.changes
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/installation/package/yast2-installation.changes?rev=53008&r1=53007&r2=53008&view=diff
==============================================================================
--- trunk/installation/package/yast2-installation.changes (original)
+++ trunk/installation/package/yast2-installation.changes Thu Nov 6 16:35:51
2008
@@ -1,4 +1,11 @@
-------------------------------------------------------------------
+Thu Nov 6 16:35:10 CET 2008 - locilka@xxxxxxx
+
+- Fixed progress (SlideShow) information about images being
+ deployed (bnc #442286).
+- 2.17.30
+
+-------------------------------------------------------------------
Thu Nov 6 16:19:59 CET 2008 - jsuchome@xxxxxxx
- S09-cleanup: check for additional services requiring restart
Modified: trunk/installation/src/clients/inst_deploy_image.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/installation/src/clients/inst_deploy_image.ycp?rev=53008&r1=53007&r2=53008&view=diff
==============================================================================
--- trunk/installation/src/clients/inst_deploy_image.ycp (original)
+++ trunk/installation/src/clients/inst_deploy_image.ycp Thu Nov 6 16:35:51
2008
@@ -73,7 +73,6 @@
if (id != "deploying_images") {
string new_label = ImageInstallation::GetProgressLayoutLabel (id);
SlideShow::SubProgressStart( new_label );
- SlideShow::AppendMessageToInstLog( new_label );
}
_previous_id = id;
@@ -103,6 +102,7 @@
integer _steps_for_one_image = 100;
boolean download_handler_hit = false;
+string _last_image_downloading = nil;
boolean MyProgressDownloadHandler (integer percent, integer bps_avg, integer
bps_current) {
// changing settings on the fly
@@ -118,6 +118,14 @@
if (_last_download_progress < percent) {
string image_info = current_image["name"]:"";
+
+ // BNC 442286, new image
+ // Sometimes it happens that the same image is logged twice
+ if (_last_image_downloading != image_info) {
+ y2milestone ("Downloading image: %1", image_info);
+ _last_image_downloading = image_info;
+ }
+
if (image_info == "") {
image_info = sformat (_("Downloading image at speed %1/s"),
String::FormatSize (bps_current));
} else {
@@ -150,8 +158,11 @@
map <string, any> current_image =
ImageInstallation::GetCurrentImageDetails();
integer max_progress = current_image["max_progress"]:0;
+ boolean another_image = false;
+
// another file than the previous one
if (current_image["file"]:"" != _last_image_id) {
+ another_image = true;
_last_image_id = current_image["file"]:"";
_last_download_progress = -1;
_last_progress = -1;
@@ -169,14 +180,21 @@
// reset the label
if (x_progress == 0) {
string current_image_name = current_image["name"]:"";
+
if (current_image_name == "") {
current_image_name = _("Deploying image...");
} else {
current_image_name = sformat (_("Deploying image %1..."),
current_image_name);
}
- // one image done
- SlideShow::SubProgressStart( current_image_name );
- SlideShow::AppendMessageToInstLog( current_image_name );
+
+ if (another_image == true) {
+ // one image done (another than the previous one)
+ // BNC #442286
+ SlideShow::SubProgressStart( current_image_name );
+ SlideShow::AppendMessageToInstLog( current_image_name );
+ } else {
+ y2warning ("The same image name again: %1 (100 * %2 / %3)",
current_image_name, current_progress, max_progress);
+ }
}
// set current step
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx
Date: Thu Nov 6 16:35:51 2008
New Revision: 53008
URL: http://svn.opensuse.org/viewcvs/yast?rev=53008&view=rev
Log:
- Fixed progress (SlideShow) information about images being
deployed (bnc #442286).
- 2.17.30
Modified:
trunk/installation/VERSION
trunk/installation/package/yast2-installation.changes
trunk/installation/src/clients/inst_deploy_image.ycp
Modified: trunk/installation/VERSION
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/installation/VERSION?rev=53008&r1=53007&r2=53008&view=diff
==============================================================================
--- trunk/installation/VERSION (original)
+++ trunk/installation/VERSION Thu Nov 6 16:35:51 2008
@@ -1 +1 @@
-2.17.29
+2.17.30
Modified: trunk/installation/package/yast2-installation.changes
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/installation/package/yast2-installation.changes?rev=53008&r1=53007&r2=53008&view=diff
==============================================================================
--- trunk/installation/package/yast2-installation.changes (original)
+++ trunk/installation/package/yast2-installation.changes Thu Nov 6 16:35:51
2008
@@ -1,4 +1,11 @@
-------------------------------------------------------------------
+Thu Nov 6 16:35:10 CET 2008 - locilka@xxxxxxx
+
+- Fixed progress (SlideShow) information about images being
+ deployed (bnc #442286).
+- 2.17.30
+
+-------------------------------------------------------------------
Thu Nov 6 16:19:59 CET 2008 - jsuchome@xxxxxxx
- S09-cleanup: check for additional services requiring restart
Modified: trunk/installation/src/clients/inst_deploy_image.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/installation/src/clients/inst_deploy_image.ycp?rev=53008&r1=53007&r2=53008&view=diff
==============================================================================
--- trunk/installation/src/clients/inst_deploy_image.ycp (original)
+++ trunk/installation/src/clients/inst_deploy_image.ycp Thu Nov 6 16:35:51
2008
@@ -73,7 +73,6 @@
if (id != "deploying_images") {
string new_label = ImageInstallation::GetProgressLayoutLabel (id);
SlideShow::SubProgressStart( new_label );
- SlideShow::AppendMessageToInstLog( new_label );
}
_previous_id = id;
@@ -103,6 +102,7 @@
integer _steps_for_one_image = 100;
boolean download_handler_hit = false;
+string _last_image_downloading = nil;
boolean MyProgressDownloadHandler (integer percent, integer bps_avg, integer
bps_current) {
// changing settings on the fly
@@ -118,6 +118,14 @@
if (_last_download_progress < percent) {
string image_info = current_image["name"]:"";
+
+ // BNC 442286, new image
+ // Sometimes it happens that the same image is logged twice
+ if (_last_image_downloading != image_info) {
+ y2milestone ("Downloading image: %1", image_info);
+ _last_image_downloading = image_info;
+ }
+
if (image_info == "") {
image_info = sformat (_("Downloading image at speed %1/s"),
String::FormatSize (bps_current));
} else {
@@ -150,8 +158,11 @@
map <string, any> current_image =
ImageInstallation::GetCurrentImageDetails();
integer max_progress = current_image["max_progress"]:0;
+ boolean another_image = false;
+
// another file than the previous one
if (current_image["file"]:"" != _last_image_id) {
+ another_image = true;
_last_image_id = current_image["file"]:"";
_last_download_progress = -1;
_last_progress = -1;
@@ -169,14 +180,21 @@
// reset the label
if (x_progress == 0) {
string current_image_name = current_image["name"]:"";
+
if (current_image_name == "") {
current_image_name = _("Deploying image...");
} else {
current_image_name = sformat (_("Deploying image %1..."),
current_image_name);
}
- // one image done
- SlideShow::SubProgressStart( current_image_name );
- SlideShow::AppendMessageToInstLog( current_image_name );
+
+ if (another_image == true) {
+ // one image done (another than the previous one)
+ // BNC #442286
+ SlideShow::SubProgressStart( current_image_name );
+ SlideShow::AppendMessageToInstLog( current_image_name );
+ } else {
+ y2warning ("The same image name again: %1 (100 * %2 / %3)",
current_image_name, current_progress, max_progress);
+ }
}
// set current step
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx
| < Previous | Next > |