[yast-commit] r56623 - in /branches/tmp/SLE-11-SP1-Stash/add-on: package/yast2-add-on.changes src/add-on-workflow.ycp yast2-add-on.spec.in
Author: locilka Date: Fri Apr 3 14:40:28 2009 New Revision: 56623 URL: http://svn.opensuse.org/viewcvs/yast?rev=56623&view=rev Log: - Adjusting initial repository name according to LABEL in content file (bnc #481828). Modified: branches/tmp/SLE-11-SP1-Stash/add-on/package/yast2-add-on.changes branches/tmp/SLE-11-SP1-Stash/add-on/src/add-on-workflow.ycp branches/tmp/SLE-11-SP1-Stash/add-on/yast2-add-on.spec.in Modified: branches/tmp/SLE-11-SP1-Stash/add-on/package/yast2-add-on.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/SLE-11-SP1-Stash/add-on/package/yast2-add-on.changes?rev=56623&r1=56622&r2=56623&view=diff ============================================================================== --- branches/tmp/SLE-11-SP1-Stash/add-on/package/yast2-add-on.changes (original) +++ branches/tmp/SLE-11-SP1-Stash/add-on/package/yast2-add-on.changes Fri Apr 3 14:40:28 2009 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Fri Apr 3 14:34:11 CEST 2009 - locilka@suse.cz + +- Adjusting initial repository name according to LABEL in content + file (bnc #481828). + +------------------------------------------------------------------- Wed Mar 18 17:59:31 CET 2009 - locilka@suse.cz - Removing a work around that broke the possibility to use several Modified: branches/tmp/SLE-11-SP1-Stash/add-on/src/add-on-workflow.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/SLE-11-SP1-Stash/add-on/src/add-on-workflow.ycp?rev=56623&r1=56622&r2=56623&view=diff ============================================================================== --- branches/tmp/SLE-11-SP1-Stash/add-on/src/add-on-workflow.ycp (original) +++ branches/tmp/SLE-11-SP1-Stash/add-on/src/add-on-workflow.ycp Fri Apr 3 14:40:28 2009 @@ -10,6 +10,7 @@ * * Authors: * Jiri Srain <jsrain@suse.cz> + * Lukas Ocilka <locilka@suse.cz> * * */ @@ -34,6 +35,7 @@ import "Installation"; import "PackageCallbacks"; import "PackagesUI"; +import "Packages"; include "packager/inst_source_dialogs.ycp"; include "packager/repositories_include.ycp"; @@ -195,6 +197,8 @@ }); if (src_id_found) { + // BNC #481828: Using LABEL from content file as a repository name + Packages::AdjustSourcePropertiesAccordingToProduct (AddOnProduct::src_id); // used add-ons are stored in a special list AddAddOnToStore (AddOnProduct::src_id); } else { @@ -286,14 +290,9 @@ // busy message UI::OpenDialog(`Label(`id (`add_on_popup_id), _("Initializing new source..."))); integer src_id = SourceManager::newSources[0]:0; - map data = Pkg::SourceGeneralData (src_id); - y2milestone("Adding product: %1", data); - string url = data["url"]:""; - string product_dir = data["product_dir"]:""; - y2milestone ("Deleting source %1", src_id); - Pkg::SourceDelete (src_id); - src_id = Pkg::SourceCreate (url, product_dir); - SourceManager::newSources = [src_id]; + + // BNC #481828: Using LABEL from content file as a repository name + Packages::AdjustSourcePropertiesAccordingToProduct (src_id); // a little hack because of packager leaving // windows open... @@ -309,16 +308,6 @@ } } - if (src_id == -1) - { - // error report - Report::Error (_("Failed to initialize the software repository.")); - AddOnProduct::ClearRegistrationRequest (src_id); - - y2milestone ("CatalogSelect Dialog ret: %1", AddOnProduct::last_ret); - return `finish; - } - AddOnProduct::src_id = src_id; SourceManager::newSources = [src_id]; y2milestone ("Only one source available - skipping dialog"); @@ -326,6 +315,7 @@ y2milestone ("CatalogSelect Dialog ret: %1", AddOnProduct::last_ret); return AddOnProduct::last_ret; } + y2milestone ("Running catalog select dialog"); list catalogs = maplist (integer src, sources, { map data = Pkg::SourceGeneralData (src); @@ -360,17 +350,8 @@ if (ret == `abort || ret == `cancel) { ret = `abort; -// if (Stage::initial()) -// { -// if (Popup::ConfirmAbort (`painless)) -// break; -// } -// else -// { - // yes-no popup - if (Popup::YesNo (_("Really abort add-on product installation?"))) - break; -// } + if (Popup::YesNo (_("Really abort add-on product installation?"))) + break; continue; } else if (ret == `back) @@ -401,26 +382,13 @@ foreach (integer src, SourceManager::newSources, { if (src != selected) { - y2milestone ("Deleting source %1", src); + y2milestone ("Deleting unused source %1", src); Pkg::SourceDelete (src); } }); - map data = Pkg::SourceGeneralData (selected); - string url = data["url"]:""; - string product_dir = data["product_dir"]:""; - y2milestone ("Deleting source %1", selected); - Pkg::SourceDelete (selected); - selected = Pkg::SourceCreate (url, product_dir); - SourceManager::newSources = [selected]; - if (selected == -1) - { - // error report - Report::Error (_("Failed to initialize the software repository.")); - AddOnProduct::ClearRegistrationRequest (selected); - y2milestone ("CatalogSelect Dialog ret: %1", `finish); - return `finish; - } + // BNC #481828: Using LABEL from content file as a repository name + Packages::AdjustSourcePropertiesAccordingToProduct (selected); AddOnProduct::src_id = selected; SourceManager::newSources = [selected]; Modified: branches/tmp/SLE-11-SP1-Stash/add-on/yast2-add-on.spec.in URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/SLE-11-SP1-Stash/add-on/yast2-add-on.spec.in?rev=56623&r1=56622&r2=56623&view=diff ============================================================================== --- branches/tmp/SLE-11-SP1-Stash/add-on/yast2-add-on.spec.in (original) +++ branches/tmp/SLE-11-SP1-Stash/add-on/yast2-add-on.spec.in Fri Apr 3 14:40:28 2009 @@ -7,8 +7,8 @@ Requires: yast2-installation Requires: yast2-country -# repositories_include.ycp -Requires: yast2-packager >= 2.16.47 +# Packages::AdjustSourcePropertiesAccordingToProduct +Requires: yast2-packager >= 2.17.60 # bugzilla #335582, new API for StorageDevices Requires: yast2-storage >= 2.16.1 -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
locilka@svn.opensuse.org