Author: mzugec Date: Wed Apr 22 14:27:25 2009 New Revision: 56912 URL: http://svn.opensuse.org/viewcvs/yast?rev=56912&view=rev Log: fixed:remove interface alias (bnc#471253) Added: branches/tmp/mzugec/SuSE-Code-11-Branch/yast2/ - copied from r56911, branches/SuSE-Code-11-Branch/yast2/ Modified: branches/tmp/mzugec/SuSE-Code-11-Branch/yast2/VERSION branches/tmp/mzugec/SuSE-Code-11-Branch/yast2/library/network/src/NetworkInterfaces.ycp branches/tmp/mzugec/SuSE-Code-11-Branch/yast2/package/yast2.changes Modified: branches/tmp/mzugec/SuSE-Code-11-Branch/yast2/VERSION URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/mzugec/SuSE-Code-11-Branch/yast2/VERSION?rev=56912&r1=56911&r2=56912&view=diff ============================================================================== --- branches/tmp/mzugec/SuSE-Code-11-Branch/yast2/VERSION (original) +++ branches/tmp/mzugec/SuSE-Code-11-Branch/yast2/VERSION Wed Apr 22 14:27:25 2009 @@ -1 +1 @@ -2.17.68 +2.17.69 Modified: branches/tmp/mzugec/SuSE-Code-11-Branch/yast2/library/network/src/NetworkInterfaces.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/mzugec/SuSE-Code-11-Branch/yast2/library/network/src/NetworkInterfaces.ycp?rev=56912&r1=56911&r2=56912&view=diff ============================================================================== --- branches/tmp/mzugec/SuSE-Code-11-Branch/yast2/library/network/src/NetworkInterfaces.ycp (original) +++ branches/tmp/mzugec/SuSE-Code-11-Branch/yast2/library/network/src/NetworkInterfaces.ycp Wed Apr 22 14:27:25 2009 @@ -698,7 +698,7 @@ path base = add (.network.value, dev); // look in OriginalDevs because we need to catch all variables // of the alias - foreach (string key, any dummy, OriginalDevs[typ, num, "_aliases", anum]:$[], { + foreach (string key, any dummy, OriginalDevs[typ, dev, "_aliases", anum]:$[], { path p = add (base, key + "_" + anum); y2debug ("deleting: %1", p); SCR::Write (p, nil); @@ -739,7 +739,7 @@ // writing, but we create it in 2 ways so it's // better here. Actually it does not work because // the edit dialog nukes LABEL :-( - boolean seen_label = false; +// boolean seen_label = false; if (size(amap["IPADDR"]:"")>0 && size(amap["NETMASK"]:"")>0){ amap["IPADDR"] = sformat("%1/%2", amap["IPADDR"]:"", Netmask::ToBits(amap["NETMASK"]:"")); amap=remove(amap, "NETMASK"); @@ -755,13 +755,15 @@ maplist(string ak, string av, amap, { string akk = ak + "_" + anum; ShellSafeWrite (topath (p + akk), av); - seen_label = seen_label || ak == "LABEL"; +// seen_label = seen_label || ak == "LABEL"; }); +/* if (!seen_label) { ShellSafeWrite (topath (p + ("LABEL_" + anum)), anum); } +*/ }); } /* Write regular keys */ Modified: branches/tmp/mzugec/SuSE-Code-11-Branch/yast2/package/yast2.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/mzugec/SuSE-Code-11-Branch/yast2/package/yast2.changes?rev=56912&r1=56911&r2=56912&view=diff ============================================================================== --- branches/tmp/mzugec/SuSE-Code-11-Branch/yast2/package/yast2.changes (original) +++ branches/tmp/mzugec/SuSE-Code-11-Branch/yast2/package/yast2.changes Wed Apr 22 14:27:25 2009 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Wed Apr 22 14:22:57 CEST 2009 - mzugec@suse.cz + +- fixed:remove interface alias (bnc#471253) +- 2.17.69 + +------------------------------------------------------------------- Mon Feb 23 12:41:52 CET 2009 - locilka@suse.cz - Fixing ProductControl to avoid leaving a workflow with the `auto -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org