[mirrorbrain-commits] [opensuse-svn] r7601 - trunk/tools/download-redirector-v2/mirrordoctor/mb

From: Novell Forge SVN <noreply_at_novell.com>
Date: Wed, 24 Jun 2009 09:05:42 -0600 (MDT)
Author: poeml
Date: 2009-06-24 09:05:18 -0600 (Wed, 24 Jun 2009)
New Revision: 7601

Modified:
   trunk/tools/download-redirector-v2/mirrordoctor/mb/util.py
Log:
mb.util class Sample(): checksumming content implies downloading it. Set up the
class attribute accordingly, so the class user don't have to take care of it.


Modified: trunk/tools/download-redirector-v2/mirrordoctor/mb/util.py
===================================================================
--- trunk/tools/download-redirector-v2/mirrordoctor/mb/util.py	2009-06-24 14:25:54 UTC (rev 7600)
+++ trunk/tools/download-redirector-v2/mirrordoctor/mb/util.py	2009-06-24 15:05:18 UTC (rev 7601)
@@ -52,7 +52,11 @@
 
         self.probeurl = self.probebaseurl.rstrip('/') + '/' + self.filename.lstrip('/')
 
+        # checksumming content implies downloading it
+        if self.get_digest:
+            self.get_content = True
 
+
     def __str__(self):
         s = 'M: %s %s, has_file=%s' \
                 % (self.identifier, self.probeurl, self.has_file)

_______________________________________________
Opensuse-svn mailing list
Opensuse-svn_at_forge.novell.com
http://forge.novell.com/mailman/listinfo/opensuse-svn


_______________________________________________
mirrorbrain-commits mailing list
Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/

Note: To remove yourself from this list, send a mail with the content
 	unsubscribe
to the address mirrorbrain-commits-request_at_mirrorbrain.org
Received on 2009-06-24Z15:06:06

This archive was generated by hypermail 2.2.0 : 2009-07-10Z19:18:13 GMT