summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--scripts/builder/repository.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/builder/repository.py b/scripts/builder/repository.py
index 7a44e47..2d4a12b 100644
--- a/scripts/builder/repository.py
+++ b/scripts/builder/repository.py
@@ -6,25 +6,26 @@ def repositoryWithPath (path):
try:
from mercurial import ui, hg
repo = hg.repository(ui.ui(), path)
result = HgRepository(repo, path)
except:
try:
from git import Repo
repo = Repo(path)
result = GitRepository(repo, path)
except ImportError, exception:
print "Failed to import git, please install http://gitorious.org/git-python"
- raise exception
+ print "Use sudo apt-get install python-git for Ubuntu/Debian"
+ print "Use sudo yum install GitPython for Fedora/RHEL/CentOS"
except:
result = SnapshotRepository('', path)
return result
#===================================================================
class Repository(object):