subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hwri...@apache.org
Subject svn commit: r1159716 - /subversion/trunk/tools/dist/collect_sigs.py
Date Fri, 19 Aug 2011 17:58:03 GMT
Author: hwright
Date: Fri Aug 19 17:58:03 2011
New Revision: 1159716

URL: http://svn.apache.org/viewvc?rev=1159716&view=rev
Log:
* tools/dist/collect_sigs.py
  (generate_asc_files): Only spit out asc files for the version we're currently
    interested in.

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=1159716&r1=1159715&r2=1159716&view=diff
==============================================================================
--- subversion/trunk/tools/dist/collect_sigs.py (original)
+++ subversion/trunk/tools/dist/collect_sigs.py Fri Aug 19 17:58:03 2011
@@ -75,7 +75,9 @@ def generate_asc_files(target_dir='.'):
 
   db = sqlite3.connect(os.path.join(target_dir, 'sigs.db'))
   curs = db.cursor()
-  curs.execute('SELECT filename, signature FROM signatures;')
+  like_filename = 'subversion-%s%%' % config.version
+  curs.execute('''SELECT filename, signature FROM signatures
+                  WHERE filename LIKE ?''', (like_filename, ) )
   for filename, signature in curs:
     fd = _open(filename)
     fd.write(signature)



Mime
View raw message