diff options
Diffstat (limited to 'lib/dodai/build/after_install.py')
-rw-r--r-- | lib/dodai/build/after_install.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/dodai/build/after_install.py b/lib/dodai/build/after_install.py index 16c1ec6..d84739e 100644 --- a/lib/dodai/build/after_install.py +++ b/lib/dodai/build/after_install.py | |||
@@ -1,3 +1,23 @@ | |||
1 | # | ||
2 | # Copyright 2010 Leonard Thomas | ||
3 | # | ||
4 | # This file is part of Dodai. | ||
5 | # | ||
6 | # Dodai is free software: you can redistribute it and/or modify | ||
7 | # it under the terms of the GNU General Public License as published by | ||
8 | # the Free Software Foundation, either version 3 of the License, or | ||
9 | # (at your option) any later version. | ||
10 | # | ||
11 | # Dodai is distributed in the hope that it will be useful, | ||
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | # GNU General Public License for more details. | ||
15 | # | ||
16 | # You should have received a copy of the GNU General Public License | ||
17 | # along with Dodai. If not, see <http://www.gnu.org/licenses/>. | ||
18 | |||
19 | |||
20 | |||
1 | import os | 21 | import os |
2 | from collections import namedtuple | 22 | from collections import namedtuple |
3 | from subprocess import Popen | 23 | from subprocess import Popen |
@@ -47,6 +67,7 @@ class HgClone(object): | |||
47 | self._hg_ = os.path.join(self._paths.bin, 'hg') | 67 | self._hg_ = os.path.join(self._paths.bin, 'hg') |
48 | if not os.path.exists(self._hg_): | 68 | if not os.path.exists(self._hg_): |
49 | self._easy_install('mercurial') | 69 | self._easy_install('mercurial') |
70 | self._hg_ = os.path.join(self._paths.bin, 'hg') | ||
50 | return self._hg_ | 71 | return self._hg_ |
51 | 72 | ||
52 | def __call__(self, url, dest): | 73 | def __call__(self, url, dest): |