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

From: Novell Forge SVN <noreply_at_novell.com>
Date: Sun, 1 Mar 2009 18:15:26 -0700 (MST)
Author: poeml
Date: 2009-03-01 18:15:24 -0700 (Sun, 01 Mar 2009)
New Revision: 6648

Modified:
   trunk/tools/download-redirector-v2/mirrordoctor/mb/files.py
Log:
mb mirrorlist:
- fix the mb.files.check_for_marker_files() function to actually work with the 
  new mirr_hasfile_byname function that returns a boolean type.


Modified: trunk/tools/download-redirector-v2/mirrordoctor/mb/files.py
===================================================================
--- trunk/tools/download-redirector-v2/mirrordoctor/mb/files.py	2009-03-02 00:45:34 UTC (rev 6647)
+++ trunk/tools/download-redirector-v2/mirrordoctor/mb/files.py	2009-03-02 01:15:24 UTC (rev 6648)
@@ -17,9 +17,9 @@
 
     query = "SELECT mirr_hasfile_byname(%s, '%s')" \
                   % (mirror_id, path)
-    rows = conn.Server._connection.queryAll(query)
+    result = conn.Server._connection.queryAll(query)[0][0]
 
-    return len(rows) > 0
+    return result
 
 
 def check_for_marker_files(conn, markers, mirror_id):

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


_______________________________________________
mirrorbrain-commits mailing list

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-03-02Z01:15:55

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