From 7f5d97a984053c45c46c9d53e24d5c9fea5914a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ozan=20=C3=87a=C4=9Flayan?= Date: Tue, 7 Jun 2011 06:42:37 +0000 Subject: [PATCH] cli: Suppress info about output directory The output directory will already be printed during the final step of package building. --- pisi/cli/build.py | 8 ++------ pisi/cli/delta.py | 8 ++------ 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/pisi/cli/build.py b/pisi/cli/build.py index b553f0a4..2484becc 100644 --- a/pisi/cli/build.py +++ b/pisi/cli/build.py @@ -1,6 +1,6 @@ # -*- coding:utf-8 -*- # -# Copyright (C) 2005-2010, TUBITAK/UEKAE +# Copyright (C) 2005-2011, TUBITAK/UEKAE # # This program is free software; you can redistribute it and/or modify it under # the terms of the GNU General Public License as published by the Free @@ -172,11 +172,7 @@ class Build(command.Command): self.init() - if ctx.get_option('output_dir'): - ctx.ui.info(_('Output directory: %s') - % ctx.config.options.output_dir) - else: - ctx.ui.info(_('Outputting packages in the working directory.')) + if not ctx.get_option('output_dir'): ctx.config.options.output_dir = '.' for x in self.args or ["pspec.xml"]: diff --git a/pisi/cli/delta.py b/pisi/cli/delta.py index eb329d22..5c7ae5d5 100644 --- a/pisi/cli/delta.py +++ b/pisi/cli/delta.py @@ -1,6 +1,6 @@ # -*- coding:utf-8 -*- # -# Copyright (C) 2005-2010, TUBITAK/UEKAE +# Copyright (C) 2005-2011, TUBITAK/UEKAE # # This program is free software; you can redistribute it and/or modify it under # the terms of the GNU General Public License as published by the Free @@ -88,11 +88,7 @@ class Delta(command.Command): new_package = self.args[-1] old_packages = self.args[:-1] - if ctx.get_option('output_dir'): - ctx.ui.info(_('Output directory: %s') - % ctx.config.options.output_dir) - else: - ctx.ui.info(_('Outputting packages in the working directory.')) + if not ctx.get_option('output_dir'): ctx.config.options.output_dir = '.' from pisi.operations.delta import create_delta_packages