summaryrefslogtreecommitdiffstats
path: root/modules/packagesource.py
diff options
context:
space:
mode:
authorYaakov M. Nemoy <loupgaroublond@gmail.com>2009-01-18 19:37:37 -0500
committerYaakov M. Nemoy <loupgaroublond@gmail.com>2009-01-18 19:37:37 -0500
commit8bbbcbd2cdad36e27c127c888897395cefcff3d0 (patch)
tree4d26aa09f936f76c1e14f0571c68e195f2adc3ac /modules/packagesource.py
parentc98a858abe7d209b602aaad6e01dbbf8e66bdf21 (diff)
downloadfedora-devshell-8bbbcbd2cdad36e27c127c888897395cefcff3d0.tar.gz
fedora-devshell-8bbbcbd2cdad36e27c127c888897395cefcff3d0.tar.xz
fedora-devshell-8bbbcbd2cdad36e27c127c888897395cefcff3d0.zip
Refactors Cabal to fit the new mediator pattern design
Cabal has now been split into a builder, cabal, a fetcher, hackage, and a port aka mediator, haskellport. It's been gutted to try to match some common api between the base classes. Also, bits of Darcs have been pulled out into packagesource.
Diffstat (limited to 'modules/packagesource.py')
-rw-r--r--modules/packagesource.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/packagesource.py b/modules/packagesource.py
index b0b87b8..1e88311 100644
--- a/modules/packagesource.py
+++ b/modules/packagesource.py
@@ -17,6 +17,7 @@
#
from __future__ import with_statement
+from contextlib import contextmanager
from os import makedirs
from os.path import join
@@ -78,7 +79,7 @@ class PackageSource(Directory):
def src_dir(self, *args):
'''executes a code block inside a specific branch and or checkout
'''
- with src(*args):
+ with self.src(*args):
with pwd(self.source_dir):
yield