summaryrefslogtreecommitdiffstats
path: root/modules/cabal.py
diff options
context:
space:
mode:
authorYaakov M. Nemoy <loupgaroublond@gmail.com>2009-01-05 00:50:36 -0500
committerYaakov M. Nemoy <loupgaroublond@gmail.com>2009-01-05 00:50:36 -0500
commit30fe0400ab1bb17b892235ae96c5e704204d4fc2 (patch)
tree4400803d6ad08ed759e57061c1e29425d3b1cf0f /modules/cabal.py
parent84289bb07a5485119fd5ec758d8b410e835e173f (diff)
downloadfedora-devshell-30fe0400ab1bb17b892235ae96c5e704204d4fc2.tar.gz
fedora-devshell-30fe0400ab1bb17b892235ae96c5e704204d4fc2.tar.xz
fedora-devshell-30fe0400ab1bb17b892235ae96c5e704204d4fc2.zip
Gave darcs the ability to do operations in branches and tags.
Right now it just deletes the working space when done, could use something better
Diffstat (limited to 'modules/cabal.py')
-rw-r--r--modules/cabal.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/cabal.py b/modules/cabal.py
index 89b8aad..cc82db7 100644
--- a/modules/cabal.py
+++ b/modules/cabal.py
@@ -103,6 +103,11 @@ class Cabal(Module):
p = Popen(args, stdout=cabal_out, stderr=cabal_out)
log.info('Building %s, please wait...' % self.name)
p.wait()
+
+ def install_tag(self, tag):
+ with pwd(self.package.dir):
+ with self.package.tag(tag):
+ self.install()
def install_source(self, target='home', orig=''):
self.configure(target, orig)