From f8668d74d3e96ac3ca015270e5b9254c07e8e1af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=2E=C3=87a=C4=9Flar=20Onur?= Date: Mon, 6 Nov 2006 18:36:27 +0000 Subject: [PATCH] =?UTF-8?q?do=C4=9Frusu=20bu=20:)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pisi/actionsapi/perlmodules.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/pisi/actionsapi/perlmodules.py b/pisi/actionsapi/perlmodules.py index c67689d6..0937b36d 100644 --- a/pisi/actionsapi/perlmodules.py +++ b/pisi/actionsapi/perlmodules.py @@ -28,12 +28,6 @@ from pisi.actionsapi.shelltools import can_access_file from pisi.actionsapi.shelltools import export from pisi.actionsapi.shelltools import unlink -class CompileError(pisi.actionsapi.Error): - def __init__(self, value=''): - pisi.actionsapi.Error.__init__(self, value) - self.value = value - ctx.ui.error(value) - class ConfigureError(pisi.actionsapi.Error): def __init__(self, value=''): pisi.actionsapi.Error.__init__(self, value) @@ -57,10 +51,10 @@ def configure(parameters = ''): export('PERL_MM_USE_DEFAULT', '1') if can_access_file('Build.PL'): if system('perl Build.PL installdirs=vendor destdir=%s' % get.installDIR()): - raise CompileError, _('Configure failed.') + raise ConfigureError, _('Configure failed.') else: if system('perl Makefile.PL %s PREFIX=/usr INSTALLDIRS=vendor DESTDIR=%s' % (parameters, get.installDIR())): - raise CompileError, _('Configure failed.') + raise ConfigureError, _('Configure failed.') def make(parameters = ''): '''make source with given parameters.'''