tree-wide: Do not pass variables to the gettext function
This commit is contained in:
@@ -49,11 +49,11 @@ class ConfigureError(pisi.actionsapi.Error):
|
|||||||
|
|
||||||
def configure(projectfile='', parameters='', installPrefix=prefix):
|
def configure(projectfile='', parameters='', installPrefix=prefix):
|
||||||
if projectfile != '' and not shelltools.can_access_file(projectfile):
|
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")
|
profiles = glob.glob("*.pro")
|
||||||
if len(profiles) > 1 and projectfile == '':
|
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))
|
shelltools.system("%s -makefile %s PREFIX='%s' QMAKE_CFLAGS+='%s' QMAKE_CXXFLAGS+='%s' %s" % (qmake, projectfile, installPrefix, get.CFLAGS(), get.CXXFLAGS(), parameters))
|
||||||
|
|
||||||
|
|||||||
@@ -1009,8 +1009,8 @@ class Builder:
|
|||||||
|
|
||||||
if not self.files.list:
|
if not self.files.list:
|
||||||
if not package.debug_package:
|
if not package.debug_package:
|
||||||
ctx.ui.warning(_("Ignoring empty package %s" \
|
ctx.ui.warning(_("Ignoring empty package %s") \
|
||||||
% package.name))
|
% package.name)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
ctx.ui.action(_("Building package: %s") % package.name)
|
ctx.ui.action(_("Building package: %s") % package.name)
|
||||||
|
|||||||
Reference in New Issue
Block a user