[yast-commit] r62843 - in /trunk/packager: package/yast2-packager.changes src/clients/inst_productsources.ycp
Author: lslezak Date: Fri Nov 12 12:39:25 2010 New Revision: 62843 URL: http://svn.opensuse.org/viewcvs/yast?rev=62843&view=rev Log: - display more details when adding a community repository fails (bnc#440332) Modified: trunk/packager/package/yast2-packager.changes trunk/packager/src/clients/inst_productsources.ycp Modified: trunk/packager/package/yast2-packager.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/package/yast2-packager.changes?rev=62843&r1=62842&r2=62843&view=diff ============================================================================== --- trunk/packager/package/yast2-packager.changes (original) +++ trunk/packager/package/yast2-packager.changes Fri Nov 12 12:39:25 2010 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Fri Nov 12 11:37:16 UTC 2010 - lslezak@suse.cz + +- display more details when adding a community repository fails + (bnc#440332) + +------------------------------------------------------------------- Thu Nov 11 17:14:29 UTC 2010 - lslezak@suse.cz - fixed error handling for failed mounts, do not display negative Modified: trunk/packager/src/clients/inst_productsources.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/src/clients/inst_productsources.ycp?rev=62843&r1=62842&r2=62843&view=diff ============================================================================== --- trunk/packager/src/clients/inst_productsources.ycp (original) +++ trunk/packager/src/clients/inst_productsources.ycp Fri Nov 12 12:39:25 2010 @@ -550,7 +550,7 @@ }); // just for debugging purposes - y2debug ("%1", list_of_repos); + y2debug("list_of_repos: %1", list_of_repos); return true; } @@ -1288,12 +1288,32 @@ } if (src_id == nil) { + string error = ""; + string details = ""; + + if (repo_type == nil) + { + error = Pkg::LastError(); + if (size(error) > 0) + { + error = "\n\n" + error; + } + + details = Pkg::LastErrorDetails(); + if (size(details) > 0) + { + details = "\n\n" + details; + } + } + Report::Error (sformat ( // TRANSLATORS: pop-up error message // %1 is replaced with a repository name or URL _("Adding repository %1 failed"), (repo_name != "" ? repo_name : url) - )); + ) + + error + details + ); // FIXME: retry ? return false; } -- 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