From 6dcdc10947cb5d0fb0d72e10824d72923dd48e2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20A=C5=9F=C4=B1c=C4=B1?= Date: Wed, 13 Oct 2010 08:30:33 +0000 Subject: [PATCH] tree-wide: Do not pass variables to the gettext function --- pisi/actionsapi/qt4.py | 4 ++-- pisi/operations/build.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pisi/actionsapi/qt4.py b/pisi/actionsapi/qt4.py index 1b5f4756..25beb465 100644 --- a/pisi/actionsapi/qt4.py +++ b/pisi/actionsapi/qt4.py @@ -49,11 +49,11 @@ class ConfigureError(pisi.actionsapi.Error): def configure(projectfile='', parameters='', installPrefix=prefix): if projectfile != '' and not shelltools.can_access_file(projectfile): - raise ConfigureError(_("Project file '%s' not found." % projectfile)) + raise ConfigureError(_("Project file '%s' not found.") % projectfile) profiles = glob.glob("*.pro") if len(profiles) > 1 and projectfile == '': - raise ConfigureError(_("It seems there are more than one .pro file, you must specify one. (Possible .pro files: %s)" % ", ".join(profiles))) + raise ConfigureError(_("It seems there are more than one .pro file, you must specify one. (Possible .pro files: %s)") % ", ".join(profiles)) shelltools.system("%s -makefile %s PREFIX='%s' QMAKE_CFLAGS+='%s' QMAKE_CXXFLAGS+='%s' %s" % (qmake, projectfile, installPrefix, get.CFLAGS(), get.CXXFLAGS(), parameters)) diff --git a/pisi/operations/build.py b/pisi/operations/build.py index 13488b5a..02959400 100644 --- a/pisi/operations/build.py +++ b/pisi/operations/build.py @@ -1009,8 +1009,8 @@ class Builder: if not self.files.list: if not package.debug_package: - ctx.ui.warning(_("Ignoring empty package %s" \ - % package.name)) + ctx.ui.warning(_("Ignoring empty package %s") \ + % package.name) continue ctx.ui.action(_("Building package: %s") % package.name)