From efbd071016bdbd5874bc7c626f36021ce75a4841 Mon Sep 17 00:00:00 2001 From: Greg Ward Date: Fri, 2 Jun 2000 02:01:51 +0000 Subject: Only print debugging output if DEBUG true. --- Lib/distutils/command/bdist_rpm.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Lib/distutils/command/bdist_rpm.py b/Lib/distutils/command/bdist_rpm.py index d37d609..aecf5c9 100644 --- a/Lib/distutils/command/bdist_rpm.py +++ b/Lib/distutils/command/bdist_rpm.py @@ -9,7 +9,7 @@ __revision__ = "$Id$" import os, string, re from types import * -from distutils.core import Command +from distutils.core import Command, DEBUG from distutils.util import get_platform, write_file from distutils.errors import * @@ -247,11 +247,12 @@ class bdist_rpm (Command): def run (self): - print "before _get_package_data():" - print "vendor =", self.vendor - print "packager =", self.packager - print "doc_files =", self.doc_files - print "changelog =", self.changelog + if DEBUG: + print "before _get_package_data():" + print "vendor =", self.vendor + print "packager =", self.packager + print "doc_files =", self.doc_files + print "changelog =", self.changelog # make directories if self.spec_only: -- cgit v0.12