From 6cfcbb8deeb99b0b88f5ce3b34a5c9aa1877dc57 Mon Sep 17 00:00:00 2001 From: Clipperz Date: Wed, 09 Jan 2013 11:24:13 +0000 Subject: Merge branch 'master' of github.com:clipperz/password-manager Conflicts: frontend/beta/css/yui-extensions/basic-dialog.css --- (limited to 'scripts') diff --git a/scripts/builder/repository.py b/scripts/builder/repository.py index a47e249..7ac2324 100644 --- a/scripts/builder/repository.py +++ b/scripts/builder/repository.py @@ -11,12 +11,14 @@ def repositoryWithPath (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 + except: + result = SnapshotRepository('', path) return result @@ -86,3 +88,10 @@ class HgRepository(Repository): #=================================================================== + +class SnapshotRepository(Repository): + def revision (self): + return 'SNAPSHOT' + + def areTherePendingChanges (self): + return False -- cgit v0.9.0.2