Author: lslezak Date: Thu Jun 9 21:49:12 2011 New Revision: 64299 URL: http://svn.opensuse.org/viewcvs/yast?rev=64299&view=rev Log: use the real current download mode instead of the default from the config file Modified: branches/tmp/lslezak/SP2/packager/src/modules/PackageSlideShow.ycp Modified: branches/tmp/lslezak/SP2/packager/src/modules/PackageSlideShow.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/lslezak/SP2/packager/src/modules/PackageSlideShow.ycp?rev=64299&r1=64298&r2=64299&view=diff ============================================================================== --- branches/tmp/lslezak/SP2/packager/src/modules/PackageSlideShow.ycp (original) +++ branches/tmp/lslezak/SP2/packager/src/modules/PackageSlideShow.ycp Thu Jun 9 21:49:12 2011 @@ -50,8 +50,6 @@ string provide_name = ""; // currently downlaoded package name string provide_size = ""; // currently downlaoded package size - boolean download_in_advance_mode = false; - /*****************************************************************************/ /*************** Formatting functions and helpers ***************************/ /*****************************************************************************/ @@ -486,7 +484,6 @@ total_count_downloaded = 0; integer total_count_to_install = packages_to_install(total_pkg_count_per_cd_per_src); downloading_pct = 100 * total_count_to_download / (total_count_to_install + total_count_to_download); - download_in_advance_mode= (string)SCR::Read(.etc.zypp_conf.value.main."commit.downloadMode") == "DownloadInAdvance"; init_pkg_data_complete = true; // reset the history log @@ -1001,7 +998,7 @@ // move the progress also for downloaded files UpdateTotalProgressValue(); - if (download_in_advance_mode) + if (Pkg::CommitPolicy()["download_mode"]:`default == `download_in_advance) { // display download progress in DownloadInAdvance mode // translations: progress message (part1) -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org