You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by hw...@apache.org on 2011/07/14 15:20:09 UTC
svn commit: r1146690 - /subversion/trunk/tools/dist/collect_sigs.py
Author: hwright
Date: Thu Jul 14 13:20:09 2011
New Revision: 1146690
URL: http://svn.apache.org/viewvc?rev=1146690&view=rev
Log:
A couple of improvements to the collect_sigs script.
* tools/dist/collect_sigs.py
(generate_asc_files): Don't insert a gratuitous newline in the combined
signature output.
(list_signatures): Only list the signatures for the version of interest.
Modified:
subversion/trunk/tools/dist/collect_sigs.py
Modified: subversion/trunk/tools/dist/collect_sigs.py
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/dist/collect_sigs.py?rev=1146690&r1=1146689&r2=1146690&view=diff
==============================================================================
--- subversion/trunk/tools/dist/collect_sigs.py (original)
+++ subversion/trunk/tools/dist/collect_sigs.py Thu Jul 14 13:20:09 2011
@@ -78,7 +78,7 @@ def generate_asc_files(target_dir='.'):
curs.execute('SELECT filename, signature FROM signatures;')
for filename, signature in curs:
fd = _open(filename)
- fd.write(signature + "\n")
+ fd.write(signature)
for fd in fds.values():
fd.flush()
@@ -181,8 +181,11 @@ def list_signatures():
lines = ""
curs = db.cursor()
+ like_filename = 'subversion-%s%%' % config.version
curs.execute('''SELECT filename, COUNT(*) FROM signatures
- GROUP BY filename ORDER BY filename''')
+ WHERE filename LIKE ?
+ GROUP BY filename ORDER BY filename''',
+ (like_filename, ) )
for filename, count in curs:
lines += '<a href="%s/%s.asc">%s.asc</a>: %d signature%s<br/>\n' \
% (os.getenv('SCRIPT_NAME'), filename, filename,