diff options
| author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2009-10-30 21:40:07 +0000 |
|---|---|---|
| committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2009-10-30 21:40:07 +0000 |
| commit | 1121206ea7b848c833434a99baacd658fe2a55b4 (patch) | |
| tree | 9338bd4473608318caf147d8a88d07852740b9fe | |
| parent | 99e492ef083104aa1e233360f59d958292029e32 (diff) | |
| download | rockbox-1121206ea7b848c833434a99baacd658fe2a55b4.zip rockbox-1121206ea7b848c833434a99baacd658fe2a55b4.tar.gz rockbox-1121206ea7b848c833434a99baacd658fe2a55b4.tar.bz2 rockbox-1121206ea7b848c833434a99baacd658fe2a55b4.tar.xz | |
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-x | rbutil/rbutilqt/deploy-release.py | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/deploy-release.py b/rbutil/rbutilqt/deploy-release.py index dab0e8a..4b3b915 100755 --- a/rbutil/rbutilqt/deploy-release.py +++ b/rbutil/rbutilqt/deploy-release.py @@ -42,12 +42,24 @@ import zipfile import shutil import subprocess import getopt -import which import time import hashlib -import pysvn import tempfile +# modules that are not part of python itself. +try: + import pysvn +except ImportError: + print "Fatal: This script requires the pysvn package to run." + print " See http://pysvn.tigris.org/." + sys.exit(-5) +try: + import which +except ImportError: + print "Fatal: This script requires the which package to run." + print " See http://code.google.com/p/which/." + sys.exit(-5) + # == Global stuff == # Windows nees some special treatment. Differentiate between program name # and executable filename. |