View | Details | Raw Unified | Return to bug 768624
Collapse All | Expand All

(-)a/src/clients/inst_addon_update_sources.ycp (-2 / +9 lines)
Lines 45-50 include "packager/inst_source_dialogs.ycp"; Link Here
45
if ( GetInstArgs::going_back())     // going backwards?
45
if ( GetInstArgs::going_back())     // going backwards?
46
    return `auto;                   // don't execute this once more
46
    return `auto;                   // don't execute this once more
47
47
48
map <string,string> aliases     = $[];
48
49
49
/**
50
/**
50
 * @return the urls of known installation sources
51
 * @return the urls of known installation sources
Lines 74-79 map <string, string> UpdateUrls () { Link Here
74
		p["display_name"]:p["name"]:p["summary"]:_("Unknown Product"),
75
		p["display_name"]:p["name"]:p["summary"]:_("Unknown Product"),
75
		p["version"]:""
76
		p["version"]:""
76
	    );
77
	    );
78
	    // alias should be simple (bnc#768624)
79
	    aliases[u]  = String::Replace ("update-" + p["display_name"]:p["name"]:"repo", " ", "-");
77
	});
80
	});
78
    });
81
    });
79
82
Lines 112-119 if (addUrls != $[]) Link Here
112
	    // BNC #557723: Repositories migh be created without access to network
115
	    // BNC #557723: Repositories migh be created without access to network
113
	    // Libzypp must not probe the repo
116
	    // Libzypp must not probe the repo
114
117
115
	    // don't use spaces in alias (hard to use with zypper)
118
	    string alias = aliases[url]:"";
116
	    string alias = String::Replace((size(name) > 0 ? name : url), " ", "-");
119
	    if (alias == "")
120
	    {
121
	        // don't use spaces in alias (hard to use with zypper)
122
	        alias   = String::Replace((size(name) > 0 ? name : url), " ", "-");
123
	    }
117
124
118
	    map <string,any> repo_prop = $[
125
	    map <string,any> repo_prop = $[
119
		"enabled"	: true,
126
		"enabled"	: true,

Return to bug 768624