metacity r3542 - in trunk: . tools



Author: tthurman
Date: Sun Feb  3 22:00:31 2008
New Revision: 3542
URL: http://svn.gnome.org/viewvc/metacity?rev=3542&view=rev

Log:
2008-02-03  Thomas Thurman  <tthurman gnome org>

        * tools/release-wrangler.py: Fix quoting error and added some
                more error checking.



Modified:
   trunk/ChangeLog
   trunk/tools/release-wrangler.py

Modified: trunk/tools/release-wrangler.py
==============================================================================
--- trunk/tools/release-wrangler.py	(original)
+++ trunk/tools/release-wrangler.py	Sun Feb  3 22:00:31 2008
@@ -54,7 +54,8 @@
   changelog.close()
   os.rename('ChangeLog.tmp', 'ChangeLog')
 
-  os.system('svn commit -m \\"%s\\"' % (message.replace('"','\\"')))
+  if os.system('svn commit -m "%s"' % (message.replace('"','\\"')))!=0:
+    report_error("Could not commit; bailing.")
 
 def check_we_are_up_to_date():
   changed = []
@@ -322,7 +323,8 @@
 
 def tag_the_release(version):
   version['ucname'] = name.upper()
-  os.system("svn cp -m release . svn+ssh://svn.gnome.org/svn/%(name)s/tags/%(ucname)s_%(major)s_%(minor)_%(micro)" % (version))
+  if os.system("svn cp -m release . svn+ssh://svn.gnome.org/svn/%(name)s/tags/%(ucname)s_%(major)s_%(minor)_%(micro)" % (version))!=0:
+    report_error("Could not tag; bailing.")
 
 def main():
   get_up_to_date()



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]