Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2007-07-17 20:28:40 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2007-07-17 20:28:40 (GMT)
commit882a5f2c29b58d153d1e5219841366c6185d8812 (patch)
tree2682816aabab6a458c88271d941cb986f230bd85
parentccb47f761c5e6b83d9bf7c84166b140cd665d93b (diff)
setup.py release does a git pull before releasing.
-rw-r--r--sugar/activity/bundlebuilder.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/sugar/activity/bundlebuilder.py b/sugar/activity/bundlebuilder.py
index 471e0c1..6712146 100644
--- a/sugar/activity/bundlebuilder.py
+++ b/sugar/activity/bundlebuilder.py
@@ -234,6 +234,10 @@ def cmd_release(bundle_name, manifest):
if not os.path.isdir('.git'):
print 'ERROR - this command works only for git repositories'
+ retcode = subprocess.call(['git', 'pull'])
+ if retcode:
+ print 'ERROR - cannot pull from git'
+
print 'Bumping activity version...'
info_path = os.path.join(_get_source_path(), 'activity', 'activity.info')
@@ -310,9 +314,8 @@ def cmd_release(bundle_name, manifest):
repo = os.environ['ACTIVITIES_REPOSITORY']
server, path = repo.split(':')
- retcode = subprocess.call(['ssh', server, 'mv',
- '%s/%s*' % (path, bundle_name),
- '%s/old' % path])
+ retcode = subprocess.call(['ssh', server, 'rm',
+ '%s/%s*' % (path, bundle_name)])
if retcode:
print 'ERROR - cannot remove old bundles from the repository.'