Update release script to correctly create SVN tag.
authorXavier Claessens <xclaesse@gmail.com>
Tue, 3 Mar 2009 17:49:53 +0000 (17:49 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Tue, 3 Mar 2009 17:49:53 +0000 (17:49 +0000)
From: Xavier Claessens <xclaesse@gmail.com>

svn path=/trunk/; revision=2571

release.py

index bbebe031d69ba63dd1ae7de2661fb46f3f8babf5..940072a89db9b1e6df57339f02b9c10a8d46926d 100755 (executable)
@@ -247,8 +247,9 @@ class Project:
                new_tag = self.package_name.upper() + '_' +\
                          self.package_version.replace('.', '_')
 
-               url1 = self.exec_cmd('git config svn-remote.svn.url').strip()
-               url2 = url1[:url1.rfind('/')] + '/tags/' + new_tag
+               svn_base = self.exec_cmd('git config svn-remote.svn.url').strip()
+               url1 = svn_base + '/trunk'
+               url2 = svn_base + '/tags/' + new_tag
                self.exec_cmd('svn copy %s %s -m "Tagged for release %s."' % (url1, url2, self.package_version))
 
                self.exec_cmd('git tag -m "Tagged for release %s." %s' % ( self.package_version, new_tag))