[yast-commit] r64321 - in /trunk/packager: package/yast2-packager.changes src/modules/PackageSlideShow.ycp
Author: lslezak
Date: Mon Jun 13 15:30:42 2011
New Revision: 64321
URL: http://svn.opensuse.org/viewcvs/yast?rev=64321&view=rev
Log:
properly count to be downloaded packages (bnc#683977)
Modified:
trunk/packager/package/yast2-packager.changes
trunk/packager/src/modules/PackageSlideShow.ycp
Modified: trunk/packager/package/yast2-packager.changes
URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/package/yast2-packager.changes?rev=64321&r1=64320&r2=64321&view=diff
==============================================================================
--- trunk/packager/package/yast2-packager.changes (original)
+++ trunk/packager/package/yast2-packager.changes Mon Jun 13 15:30:42 2011
@@ -1,4 +1,9 @@
-------------------------------------------------------------------
+Mon Jun 13 13:28:56 UTC 2011 - lslezak@suse.cz
+
+- properly count to be downloaded packages (bnc#683977)
+
+-------------------------------------------------------------------
Fri Jun 10 09:34:21 CEST 2011 - locilka@suse.cz
- Added support for add_on_products[.xml] also in inst-sys
Modified: trunk/packager/src/modules/PackageSlideShow.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/src/modules/PackageSlideShow.ycp?rev=64321&r1=64320&r2=64321&view=diff
==============================================================================
--- trunk/packager/src/modules/PackageSlideShow.ycp (original)
+++ trunk/packager/src/modules/PackageSlideShow.ycp Mon Jun 13 15:30:42 2011
@@ -416,6 +416,10 @@
integer packages_to_download(listsrc_mapping)
{
+ // src_mapping contains only enabled repos, get indices of the enabled repos here
+ // and remap enabled index to the global repo ID
+ list<integer> enabled_sources = Pkg::SourceGetCurrent(true);
+
y2milestone("Packages to download input: %1", src_mapping);
integer ret = 0;
@@ -426,7 +430,7 @@
if (size(media_mapping) > 0)
{
// check if the repository is remote
- string repo_url = Pkg::SourceGeneralData(i)["url"]:"";
+ string repo_url = Pkg::SourceGeneralData(enabled_sources[i]:-1)["url"]:"";
string repo_schema = tolower(URL::Parse(repo_url)["scheme"]:"");
if (contains(["http", "https", "ftp", "sftp"], repo_schema))
@@ -438,7 +442,7 @@
}
);
- y2milestone("Downloading %1 packages from remote repository %2", total, i);
+ y2milestone("Downloading %1 packages from remote repository %2", total, enabled_sources[i]:-1);
ret = ret + total;
}
}
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
lslezak@svn2.opensuse.org