[yast-commit] r40107 - in /trunk/packager: package/yast2-packager.changes src/clients/inst_source.ycp
Author: lslezak Date: Wed Aug 8 17:03:59 2007 New Revision: 40107 URL: http://svn.opensuse.org/viewcvs/yast?rev=40107&view=rev Log: - shorten URL used as alias or name Modified: trunk/packager/package/yast2-packager.changes trunk/packager/src/clients/inst_source.ycp Modified: trunk/packager/package/yast2-packager.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/package/yast2-packager.changes?rev=40107&r1=40106&r2=40107&view=diff ============================================================================== --- trunk/packager/package/yast2-packager.changes (original) +++ trunk/packager/package/yast2-packager.changes Wed Aug 8 17:03:59 2007 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Wed Aug 8 17:02:28 CEST 2007 - lslezak@suse.cz + +- shorten URL used as alias or name +- 2.15.56 + +------------------------------------------------------------------- Wed Aug 8 16:29:34 CEST 2007 - locilka@suse.cz - Fixed adding Internet repositories to be able to use them during @@ -6,7 +12,6 @@ - Adapted Internet repositories client to preselect recommended repositories for the first run of the client in installation and to sort by the 'recommended' tag in installation (#297628). -- 2.15.56 ------------------------------------------------------------------- Wed Aug 8 12:56:07 CEST 2007 - jsrain@suse.cz Modified: trunk/packager/src/clients/inst_source.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/src/clients/inst_source.ycp?rev=40107&r1=40106&r2=40107&view=diff ============================================================================== --- trunk/packager/src/clients/inst_source.ycp (original) +++ trunk/packager/src/clients/inst_source.ycp Wed Aug 8 17:03:59 2007 @@ -186,7 +186,15 @@ if (size(new_repos) == 0) { // use url as the name - new_repos = [ [ url, "/" ] ]; + string url_name = url; + + // limit alias and name lenght to 25 characters + if (size(url_name) > 25) + { + url_name = URL::FormatURL(URL::Parse(url), 25); + } + + new_repos = [ [ url_name, "/" ] ]; } list<integer> newSources = []; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
lslezak@svn.opensuse.org