[yast-commit] r56946 - in /trunk/packager: VERSION package/yast2-packager.changes src/include/repositories_include.ycp
Author: lslezak Date: Thu Apr 23 17:20:49 2009 New Revision: 56946 URL: http://svn.opensuse.org/viewcvs/yast?rev=56946&view=rev Log: - added a new progress dialog when registering a new repository, download progresses are embedded into the progress dialog instead of separate popups for each file (bnc#466808) Modified: trunk/packager/VERSION trunk/packager/package/yast2-packager.changes trunk/packager/src/include/repositories_include.ycp Modified: trunk/packager/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/VERSION?rev=56946&r1=56945&r2=56946&view=diff ============================================================================== --- trunk/packager/VERSION (original) +++ trunk/packager/VERSION Thu Apr 23 17:20:49 2009 @@ -1 +1 @@ -2.18.5 +2.18.6 Modified: trunk/packager/package/yast2-packager.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/package/yast2-packager.changes?rev=56946&r1=56945&r2=56946&view=diff ============================================================================== --- trunk/packager/package/yast2-packager.changes (original) +++ trunk/packager/package/yast2-packager.changes Thu Apr 23 17:20:49 2009 @@ -1,8 +1,16 @@ ------------------------------------------------------------------- +Thu Apr 23 17:16:36 CEST 2009 - lslezak@suse.cz + +- added a new progress dialog when registering a new repository, + download progresses are embedded into the progress dialog instead + of separate popups for each file (bnc#466808) + +------------------------------------------------------------------- Thu Apr 23 15:19:17 CEST 2009 - lslezak@suse.cz - display an additional help when adding an ISO repository over FTP or HTTP protocol fails (bnc#341668) +- 2.18.6 ------------------------------------------------------------------- Tue Apr 21 15:34:48 CEST 2009 - lslezak@suse.cz Modified: trunk/packager/src/include/repositories_include.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/src/include/repositories_include.ycp?rev=56946&r1=56945&r2=56946&view=diff ============================================================================== --- trunk/packager/src/include/repositories_include.ycp (original) +++ trunk/packager/src/include/repositories_include.ycp Thu Apr 23 17:20:49 2009 @@ -21,6 +21,7 @@ import "Label"; import "SourceDialogs"; import "Report"; + import "Progress"; textdomain "packager"; @@ -36,9 +37,7 @@ boolean download_meta = true; boolean LicenseAccepted (integer id) { - Wizard::CreateDialog (); boolean ret = AddOnProduct::AcceptedLicenseAndInfoFile (id); - UI::CloseDialog (); return ret; } @@ -64,6 +63,18 @@ PackageSystem::CheckAndInstallPackages(["cifs-mount"]); } + Progress::New ( + // TRANSLATORS: dialog caption + _("Adding a New Repository"), + " ", + 3, + [ _("Check Repository Type"), _("Add Repository"), _("Read Repository License") ], + [ _("Checking Repository Type"), _("Adding Repository"), _("Reading Repository License") ], + // TRANSLATORS: dialog help + _("<p>Please wait while the repository manager downloads the repository details...</p>") + ); + + Progress::NextStage(); string service_type = Pkg::ServiceProbe(url); y2milestone("Probed service type: %1", service_type); @@ -242,6 +253,7 @@ repo_prop["base_urls"] = [ url ]; repo_prop["type"] = repo_type; + Progress::NextStage(); integer new_repo_id = Pkg::RepositoryAdd(repo_prop); y2milestone("Added repository: %1: %2", new_repo_id, repo_prop); @@ -291,6 +303,7 @@ } else { + Progress::NextStage(); foreach( integer id, newSources, ``{ if (! LicenseAccepted (id)) { -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
lslezak@svn.opensuse.org