-rw-r--r-- | scripts/builder/repository.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/builder/repository.py b/scripts/builder/repository.py index 89db9a5..f3f7d6f 100644 --- a/scripts/builder/repository.py +++ b/scripts/builder/repository.py | |||
@@ -7,8 +7,10 @@ def repositoryWithPath (path): | |||
7 | from dulwich.repo import Repo | 7 | from dulwich.repo import Repo |
8 | 8 | ||
9 | repo = Repo(path) | 9 | repo = Repo(path) |
10 | result = GitRepository(repo, path) | 10 | result = GitRepository(repo, path) |
11 | except ImportError: | ||
12 | print "Failed to import dulwich, please install http://www.samba.org/~jelmer/dulwich/" | ||
11 | except: | 13 | except: |
12 | from mercurial import ui, hg | 14 | from mercurial import ui, hg |
13 | 15 | ||
14 | repo = hg.repository(ui.ui(), path) | 16 | repo = hg.repository(ui.ui(), path) |