changeset 50:daa35ff485c2

fixes
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 02 Jan 2013 13:06:49 -0800
parents 85374a69cf89
children 8b4243893474
files paint/package.py tests/doctest.txt
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/paint/package.py	Thu May 10 15:24:51 2012 -0700
+++ b/paint/package.py	Wed Jan 02 13:06:49 2013 -0800
@@ -28,9 +28,9 @@
     constructor takes the package 'src'
     """
 
-    def __init__(self, src):
+    def __init__(self, src, verbose=True):
         self.src = src
-        self.verbose = True
+        self.verbose = verbose
 
         # ephemeral data
         self._tmppath = None
--- a/tests/doctest.txt	Thu May 10 15:24:51 2012 -0700
+++ b/tests/doctest.txt	Wed Jan 02 13:06:49 2013 -0800
@@ -7,7 +7,7 @@
 
 Get the dependencies of a package::
 
-    >>> jetperf = paint.Package('http://k0s.org/mozilla/hg/jetperf/archive/tip.tar.gz')
+    >>> jetperf = paint.Package('http://k0s.org/mozilla/hg/jetperf/archive/tip.tar.gz', verbose=False)
     >>> dependencies = jetperf.dependencies()
     >>> dependencies == {'mozharness': 'http://hg.mozilla.org/build/mozharness/archive/tip.tar.gz#egg=mozharness', 'talos': 'http://hg.mozilla.org/build/talos/archive/tip.tar.gz#egg=talos'}
     True