cli: Suppress info about output directory

The output directory will already be printed during the final
step of package building.
This commit is contained in:
Ozan Çağlayan
2011-06-07 06:42:37 +00:00
parent 54c71517a2
commit 7f5d97a984
2 changed files with 4 additions and 12 deletions
+2 -6
View File
@@ -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"]:
+2 -6
View File
@@ -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