summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command/bdist_rpm.py
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-06-02 02:01:51 (GMT)
committerGreg Ward <gward@python.net>2000-06-02 02:01:51 (GMT)
commitefbd071016bdbd5874bc7c626f36021ce75a4841 (patch)
tree57862e25b26bb9e073f90e68c227c884c28ba72c /Lib/distutils/command/bdist_rpm.py
parent2bd3f4250d59cabc0dda29fc3289beda315ce06a (diff)
downloadcpython-efbd071016bdbd5874bc7c626f36021ce75a4841.zip
cpython-efbd071016bdbd5874bc7c626f36021ce75a4841.tar.gz
cpython-efbd071016bdbd5874bc7c626f36021ce75a4841.tar.bz2
Only print debugging output if DEBUG true.
Diffstat (limited to 'Lib/distutils/command/bdist_rpm.py')
-rw-r--r--Lib/distutils/command/bdist_rpm.py13
1 files 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: