diff options
Diffstat (limited to 'modules/cabal.py')
-rw-r--r-- | modules/cabal.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/cabal.py b/modules/cabal.py index ecb0f6b..89b8aad 100644 --- a/modules/cabal.py +++ b/modules/cabal.py @@ -48,6 +48,9 @@ class Cabal(Module): tarball = abspath(tarball) with pwd(self.root): self.package.add_sourceball(tarball) + + def darcs_get(self, url, tgt): + self.package.checkout(tgt, url) def find_setup(self, orig=''): setup_re = compile("Setup\.l?hs") @@ -64,7 +67,7 @@ class Cabal(Module): p = Popen([self.compiler, '--make', setup_f], stdout = ghc_out, stderr = ghc_out) log.info('Building %s, please wait...' % setup_f) - p.wait() + p.communicate() def configure(self, target='home', orig=''): user = True if target == 'home' else False |