[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ELPA-diffs] /srv/bzr/emacs/elpa r228: Make forward-diffs.py check for a
From: |
Glenn Morris |
Subject: |
[ELPA-diffs] /srv/bzr/emacs/elpa r228: Make forward-diffs.py check for a directory maintainer if no file one |
Date: |
Wed, 23 May 2012 17:19:22 -0400 |
User-agent: |
Bazaar (2.5.0) |
------------------------------------------------------------
revno: 228
committer: Glenn Morris <address@hidden>
branch nick: elpa
timestamp: Wed 2012-05-23 17:19:22 -0400
message:
Make forward-diffs.py check for a directory maintainer if no file one
modified:
admin/forward-diffs.py
=== modified file 'admin/forward-diffs.py'
--- a/admin/forward-diffs.py 2012-05-23 20:48:03 +0000
+++ b/admin/forward-diffs.py 2012-05-23 21:19:22 +0000
@@ -47,8 +47,11 @@
##
## package1/file1 email1
## package2/file2 email2,email3
+## package3 email4
##
## Use "nomail" for the email field to not send a mail.
+## An entry that is a directory applies to all files in that directory
+## that do not have specific maintainers.
##
## overmaint = like maintfile, but takes precedence over it.
@@ -318,26 +321,41 @@
lfile.write('Unknown maintainer\n')
- if opts.noscan: continue
-
- lfile.write('Scanning file...\n')
- thismaint = []
- thisfile = os.path.join( opts.packagedir, pfile )
- scan_file( thisfile, thismaint )
- if not thismaint: continue
-
- maints[pfile] = thismaint
-
- ## Append maintainer to file.
- if not opts.noupdate:
- try:
- mfile = open( opts.maintfile, 'a' )
- string = "%-50s %s\n" % (pfile, ",".join(thismaint))
- mfile.write(string)
- mfile.close()
- lfile.write('Appended to maintfile\n')
- except Exception as err:
- lfile.write('Error appending to maintfile: %s\n' % str(err))
+ if not opts.noscan:
+
+ lfile.write('Scanning file...\n')
+ thismaint = []
+ thisfile = os.path.join( opts.packagedir, pfile )
+ scan_file( thisfile, thismaint )
+
+ if thismaint:
+ maints[pfile] = thismaint
+
+ ## Append maintainer to file.
+ if not opts.noupdate:
+ try:
+ mfile = open( opts.maintfile, 'a' )
+ string = "%-50s %s\n" % (pfile, ",".join(thismaint))
+ mfile.write(string)
+ mfile.close()
+ lfile.write('Appended to maintfile\n')
+ except Exception as err:
+ lfile.write('Error appending to maintfile: %s\n' %
+ str(err))
+
+ ## Didn't scan, or scanning did not work.
+ ## Look for a directory maintainer.
+ if not pfile in maints:
+ lfile.write('No file maintainer, trying directories...\n')
+ while True:
+ (pfile, tail) = os.path.split(pfile)
+ if not pfile: break
+ if pfile in maints: break
+
+
+ if not pfile in maints:
+ lfile.write('No maintainer, skipping\n')
+ continue
for maint in maints[pfile]:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [ELPA-diffs] /srv/bzr/emacs/elpa r228: Make forward-diffs.py check for a directory maintainer if no file one,
Glenn Morris <=