summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--scripts/builder/repository.py2
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
@@ -5,12 +5,14 @@
def repositoryWithPath (path):
try:
from dulwich.repo import Repo
repo = Repo(path)
result = GitRepository(repo, path)
+ except ImportError:
+ print "Failed to import dulwich, please install http://www.samba.org/~jelmer/dulwich/"
except:
from mercurial import ui, hg
repo = hg.repository(ui.ui(), path)
result = HgRepository(repo, path)