dispatch-conf: fix replace-wscomments pattern
authorRyan Hill <dirtyepic@gentoo.org>
Sun, 2 Oct 2011 00:34:14 +0000 (17:34 -0700)
committerZac Medico <zmedico@gentoo.org>
Sun, 2 Oct 2011 00:34:14 +0000 (17:34 -0700)
This will fix bug #375613.

bin/dispatch-conf

index 9f245d571beeef71b58e6d83309e691c1bae5306..3089329db08619d8f12219f9415a57fd1d5cd7ff 100755 (executable)
@@ -33,7 +33,7 @@ from portage.process import find_binary
 FIND_EXTANT_CONFIGS  = "find '%s' %s -name '._cfg????_%s' ! -name '.*~' ! -iname '.*.bak' -print"
 DIFF_CONTENTS        = "diff -Nu '%s' '%s'"
 DIFF_CVS_INTERP      = "diff -Nu '%s' '%s' | grep '^[+-][^+-]' | grep -v '# .Header:.*'"
-DIFF_WSCOMMENTS      = "diff -Nu '%s' '%s' | grep '^[+-][^+-]' | grep -v '^[-+]#' | grep -v '^[-+][:space:]*$'"
+DIFF_WSCOMMENTS      = "diff -Nu '%s' '%s' | grep '^[+-][^+-]' | grep -v '^[-+]#' | grep -v '^[-+][[:space:]]*$'"
 
 # We need a secure scratch dir and python does silly verbose errors on the use of tempnam
 oldmask = os.umask(0o077)