File yast2-smt-mirror-now.patch of Package yast2-smt.4101
diff --git a/yast/src/include/smt/dialogs.rb b/yast/src/include/smt/dialogs.rb
index f741d9b..d4ba4cc 100644
--- a/yast/src/include/smt/dialogs.rb
+++ b/yast/src/include/smt/dialogs.rb
@@ -1409,6 +1409,7 @@ module Yast
mirroring = nil
staging = nil
+ catalog_id = nil
# Constructing the Filter UI
# $[0:["openSUSE", "SLE", ...], 1:["11.1", "SDK", ...], ...]
@@ -1431,6 +1432,7 @@ module Yast
end
mirroring = Ops.get_string(one_catalog, "DOMIRROR", "") == "Y"
staging = Ops.get_string(one_catalog, "STAGING", "") == "Y"
+ catalog_id = Ops.get_string(one_catalog, "CATALOGID", "0")
splititem_nr = -1
# "SLE10-SDK-Updates" -> ["SLE10", "SDK", "Updates"]
Builtins.foreach(
@@ -1462,6 +1464,7 @@ module Yast
"mirroring" => mirroring,
"staging" => staging,
"name" => Ops.get_string(one_catalog, "NAME", ""),
+ "catalog_id" => catalog_id,
# empty /--/ == no specific target
"target" => Builtins.regexpmatch(
Ops.get_string(one_catalog, "TARGET", ""),
@@ -2821,7 +2824,7 @@ module Yast
elsif event_id == :toggle_staging
ToggleRepository(current_id, "staging")
elsif event_id == :mirror_now
- MirrorRepository(current_id)
+ MirrorRepository(@catalogs_info[current_id]["catalog_id"])
RedrawCatalogsTable(@filters)
elsif event_id == :catalogs_table
# Table->double_click