[Pkg-utopia-maintainers] Bug#606268: ignores interfaces configured by d-i

Ben Armstrong synrg at sanctuary.nslug.ns.ca
Sun Mar 6 15:49:09 UTC 2011


Package: network-manager
Severity: normal

When reviewing my first patch, I noticed an off-by-one error which,
while it did not in fact prevent the patch from working in the case I
tested (because I have observed there are always at least two
"wireless-" lines generated by netcfg) should should still be fixed in
case netcfg ever does supply only a single "wireless-" line. See the
attached patch. I've also included the updated script which incorporates
the patch and supercedes the first version.

Ben
-------------- next part --------------
--- ifblacklist_migrate_old.sh	2011-03-06 11:42:13.600165018 -0400
+++ ifblacklist_migrate.sh	2011-03-06 11:42:28.204165017 -0400
@@ -24,7 +24,7 @@
       delete stanza;
       stanza_lines=wireless=0;
     }
-    stanza_lines>1 && /[ \t]+wireless-/ {wireless=1}
+    stanza_lines>0 && /[ \t]+wireless-/ {wireless=1}
     /^(iface|auto|allow-|mapping)/ {new_stanza=1}
     stanza_lines>0 && (/^$/ || new_stanza) {print_stanza()}
     new_stanza || stanza_lines>0 {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ifblacklist_migrate.sh
Type: text/x-shellscript
Size: 2469 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20110306/27bd08ac/attachment.bin>


More information about the Pkg-utopia-maintainers mailing list