diff options
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): |
