summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2009-10-30 21:40:07 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2009-10-30 21:40:07 +0000
commit1121206ea7b848c833434a99baacd658fe2a55b4 (patch)
tree9338bd4473608318caf147d8a88d07852740b9fe
parent99e492ef083104aa1e233360f59d958292029e32 (diff)
downloadrockbox-1121206ea7b848c833434a99baacd658fe2a55b4.tar.gz
rockbox-1121206ea7b848c833434a99baacd658fe2a55b4.zip
Catch import errors for modules that are not part of python.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23427 a1c6a512-1295-4272-9138-f99709370657
-rwxr-xr-xrbutil/rbutilqt/deploy-release.py16
1 files changed, 14 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/deploy-release.py b/rbutil/rbutilqt/deploy-release.py
index dab0e8a7dc..4b3b91576a 100755
--- a/rbutil/rbutilqt/deploy-release.py
+++ b/rbutil/rbutilqt/deploy-release.py
@@ -42,12 +42,24 @@ import zipfile
42import shutil 42import shutil
43import subprocess 43import subprocess
44import getopt 44import getopt
45import which
46import time 45import time
47import hashlib 46import hashlib
48import pysvn
49import tempfile 47import tempfile
50 48
49# modules that are not part of python itself.
50try:
51 import pysvn
52except ImportError:
53 print "Fatal: This script requires the pysvn package to run."
54 print " See http://pysvn.tigris.org/."
55 sys.exit(-5)
56try:
57 import which
58except ImportError:
59 print "Fatal: This script requires the which package to run."
60 print " See http://code.google.com/p/which/."
61 sys.exit(-5)
62
51# == Global stuff == 63# == Global stuff ==
52# Windows nees some special treatment. Differentiate between program name 64# Windows nees some special treatment. Differentiate between program name
53# and executable filename. 65# and executable filename.