Skip to content

Commit

Permalink
initial support for alias
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Jan 17, 2013
1 parent 2be99dd commit cece69d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/modules/AddOnProduct.ycp
Original file line number Diff line number Diff line change
Expand Up @@ -1480,13 +1480,15 @@ global boolean Import (map settings) {
if (Mode::config ())
{
foreach (map prod, add_on_products, {
y2milestone( "prod:%1", prod );
string media = prod["media_url"]:"";
string pth = prod["product_dir"]:"/";
integer src = Pkg::SourceCreate (media, pth);
if (src != -1) {
if (prod["product"]:"" != "") {
map <string, any> repo = $["SrcId":src, "name":prod["product"]:""];
map <string, any> repo = $["SrcId":src, "alias":prod["name"]:"", "name":prod["product"]:""];
if (prod["priority"]:-1 > -1) repo["priority"] = prod["priority"]:-1;
y2milestone( "repo:%1", repo );
Pkg::SourceEditSet ([repo]);
}
mode_config_sources = add (mode_config_sources, src);
Expand Down

0 comments on commit cece69d

Please sign in to comment.