diff options
| author | Yaakov M. Nemoy <loupgaroublond@gmail.com> | 2009-01-21 13:30:23 -0500 |
|---|---|---|
| committer | Yaakov M. Nemoy <loupgaroublond@gmail.com> | 2009-01-21 13:30:23 -0500 |
| commit | f421d00c34d5bc475c80a2ad0c98e3d35a63b938 (patch) | |
| tree | 13526c154c6316e78b0748247d759b74c8c3e5b1 /modules/cabal.py | |
| parent | 89a3e791631b7b04e4396374f25ed64999f3a424 (diff) | |
| download | fedora-devshell-f421d00c34d5bc475c80a2ad0c98e3d35a63b938.tar.gz fedora-devshell-f421d00c34d5bc475c80a2ad0c98e3d35a63b938.tar.xz fedora-devshell-f421d00c34d5bc475c80a2ad0c98e3d35a63b938.zip | |
Bug fixes to make the demo work.
Diffstat (limited to 'modules/cabal.py')
| -rw-r--r-- | modules/cabal.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/cabal.py b/modules/cabal.py index 3c75e19..1512a9d 100644 --- a/modules/cabal.py +++ b/modules/cabal.py @@ -24,8 +24,6 @@ from re import compile, DOTALL from subprocess import Popen -from urllib import urlopen, urlretrieve - from base.base import log from base.exceptions import ExecutionException from base.factories import DirFactory @@ -133,8 +131,8 @@ class Cabal(BuildSystem): self.build(orig) self.install(orig) - def gen_spec(self): - cabal_file = self.pkg_src.hackage_name + '.cabal' + def gen_spec(self, hackage_name): + cabal_file = hackage_name + '.cabal' with pwd(self.pkg_src.pkg_src_dir): with log_file('cabal2spec.log') as c2s_log: with pwd(self.pkg_src.dir): |
