imgcreate/yuminst.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit 7709a83f722ce314ab762581a1170ec8241cbd5b
Author: Brian C. Lane <bcl(a)redhat.com>
Date: Wed May 22 15:13:09 2013 -0700
Handle urlgrabber callback changes (#963645)
diff --git a/imgcreate/yuminst.py b/imgcreate/yuminst.py
index 6b1698f..31b2f36 100644
--- a/imgcreate/yuminst.py
+++ b/imgcreate/yuminst.py
@@ -36,8 +36,9 @@ class TextProgress(object):
hdlr.stream.write(msg)
hdlr.stream.flush()
- def start(self, filename, url, *args, **kwargs):
- self.emit(logging.INFO, "Retrieving %s " % (url,))
+ def start(self, filename=None, url=None, *args, **kwargs):
+ text = kwargs.get("text", "")
+ self.emit(logging.INFO, "Retrieving %s " % (url or text))
self.url = url
def update(self, *args):
pass
Show replies by date