Mailinglist Archive: yast-commit (815 mails)

< Previous Next >
[yast-commit] r40068 - in /trunk/packager: package/yast2-packager.changes src/modules/SlideShow.ycp src/modules/SlideShowCallbacks.ycp
  • From: lslezak@xxxxxxxxxxxxxxxx
  • Date: Wed, 08 Aug 2007 07:13:34 -0000
  • Message-id: <20070808071334.C3881CDF9D@xxxxxxxxxxxxxxxx>
Author: lslezak
Date: Wed Aug  8 09:13:34 2007
New Revision: 40068

URL: http://svn.opensuse.org/viewcvs/yast?rev=40068&view=rev
Log:
- show download progress when installing packages (#297843)

Modified:
    trunk/packager/package/yast2-packager.changes
    trunk/packager/src/modules/SlideShow.ycp
    trunk/packager/src/modules/SlideShowCallbacks.ycp

Modified: trunk/packager/package/yast2-packager.changes
URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/package/yast2-packager.changes?rev=40068&r1=40067&r2=40068&view=diff
==============================================================================
--- trunk/packager/package/yast2-packager.changes (original)
+++ trunk/packager/package/yast2-packager.changes Wed Aug  8 09:13:34 2007
@@ -2,6 +2,7 @@
 Mon Aug  6 18:43:44 CEST 2007 - lslezak@xxxxxxx
 
 - properly detect ISO image (disable autorefresh)
+- show download progress when installing packages (#297843)
 
 -------------------------------------------------------------------
 Mon Aug  6 15:06:37 CEST 2007 - lslezak@xxxxxxx

Modified: trunk/packager/src/modules/SlideShow.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/src/modules/SlideShow.ycp?rev=40068&r1=40067&r2=40068&view=diff
==============================================================================
--- trunk/packager/src/modules/SlideShow.ycp (original)
+++ trunk/packager/src/modules/SlideShow.ycp Wed Aug  8 09:13:34 2007
@@ -686,7 +686,8 @@
 
        if ( UI::WidgetExists(`progressCurrentPackage) )
        {
-           UI::ChangeWidget(`progressCurrentPackage, `Label, pkg_name);
+           UI::ChangeWidget(`progressCurrentPackage, `Label, remote ?
+               sformat(_("Downloading %1 (download size %2)"), pkg_name, String::FormatSize(sz)) : pkg_name);
            UI::ChangeWidget(`progressCurrentPackage, `Value, 0);
        }
        //
@@ -1856,6 +1857,7 @@
        Pkg::CallbackStartProvide ("SlideShowCallbacks::StartProvide");
        Pkg::CallbackProgressProvide ("SlideShowCallbacks::ProgressProvide");
        Pkg::CallbackDoneProvide ("SlideShowCallbacks::DoneProvide");
+       Pkg::CallbackProgressDownload("SlideShowCallbacks::ProgressDownload");
 
        Pkg::CallbackSourceChange ("SlideShowCallbacks::CallbackSourceChange");
 

Modified: trunk/packager/src/modules/SlideShowCallbacks.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/src/modules/SlideShowCallbacks.ycp?rev=40068&r1=40067&r2=40068&view=diff
==============================================================================
--- trunk/packager/src/modules/SlideShowCallbacks.ycp (original)
+++ trunk/packager/src/modules/SlideShowCallbacks.ycp Wed Aug  8 09:13:34 2007
@@ -102,6 +102,11 @@
        return ! SlideShow::GetUserAbort();
     }
 
+    global boolean ProgressDownload(integer percent, integer dummy)
+    {
+       return ProgressProvide(percent);
+    }
+
 
     /**
      * during file providal

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages