]> code.delx.au - gnu-emacs-elpa/commitdiff
(scan_dir): Do not write empty maintainers to the maintfile.
authorGlenn Morris <rgm@gnu.org>
Wed, 23 May 2012 07:31:44 +0000 (00:31 -0700)
committerGlenn Morris <rgm@gnu.org>
Wed, 23 May 2012 07:31:44 +0000 (00:31 -0700)
admin/forward-diffs.py

index f529f170ef6eaf5b4c8cc95f72118d793e342c3a..45bc9ac5dfae2a196b7b001ad98b31c6a840e4e5 100755 (executable)
@@ -146,7 +146,8 @@ def scan_dir(dir, outfile=None):
             scan_file(path, maints)
             ## This would skip printing empty maints.
             ## That would mean we would scan the file each time for no reason.
-##            if not maints: continue
+            ## But empty maintainers are an error at present.
+            if not maints: continue
             path = re.sub( '^%s' % dir, '', path )
             string = "%-50s %s\n" % (path, ",".join(maints))
             if fd:
@@ -227,6 +228,7 @@ maints = {}
 
 for line in mfile:
     if re.match( '#| *$', line ): continue
+    ## FIXME error here if empty maintainer.
     (pfile, maint) = line.split()
     maints[pfile] = maint.split(',')