Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar-jhbuild
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2008-04-10 17:09:49 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2008-04-10 17:09:49 (GMT)
commit0bbd9750090e1c4d88cfae9e64f65b5f29b31a0b (patch)
tree566fee205c1a7237713391456ce9aff91ef685e9 /sugar-jhbuild
parent264bb0a4df6d77287ac271048f43fb5108cd0cce (diff)
Revert "Fetch jhbuild as a submodule."
This reverts commit 95e2c115896e0b2bf1a763b0cc962b556c53ef8b.
Diffstat (limited to 'sugar-jhbuild')
-rwxr-xr-xsugar-jhbuild12
1 files changed, 3 insertions, 9 deletions
diff --git a/sugar-jhbuild b/sugar-jhbuild
index 5f964fa..5cd450c 100755
--- a/sugar-jhbuild
+++ b/sugar-jhbuild
@@ -5,19 +5,13 @@ import sys
import subprocess
base_dir = os.path.abspath(os.path.dirname(__file__))
-jhbuild_dir = os.path.join(base_dir, 'build-scripts', 'jhbuild')
-sys.path.append(jhbuild_dir)
+sys.path.append(os.path.join(base_dir, 'build-scripts', 'jhbuild'))
# The update needs to be very early, before we load any module
if len(sys.argv) == 1 or (len(sys.argv) > 1 and sys.argv[1] == 'build'):
print 'Updating sugar-jhbuild...'
-
- try:
- subprocess.check_call(['git', 'pull'])
- if not os.path.exists(os.path.join(jhbuild_dir, '.git')):
- subprocess.check_call(['git', 'submodule', 'init'])
- subprocess.check_call(['git', 'submodule', 'update'])
- except subprocess.CalledProcessError:
+ retcode = subprocess.call(['git', 'pull'])
+ if retcode:
print 'sugar-jhbuild update failed.'
import main