Author: poeml Date: 2009-02-03 12:11:57 -0700 (Tue, 03 Feb 2009) New Revision: 6351 Modified: trunk/tools/download-redirector-v2/mirrordoctor/mb/files.py Log: mb file: bugfix: make patterns work which have a wildcard as first character. Modified: trunk/tools/download-redirector-v2/mirrordoctor/mb/files.py =================================================================== --- trunk/tools/download-redirector-v2/mirrordoctor/mb/files.py 2009-02-03 18:09:24 UTC (rev 6350) +++ trunk/tools/download-redirector-v2/mirrordoctor/mb/files.py 2009-02-03 19:11:57 UTC (rev 6351) _at_@ -6,7 +6,7 @@ path can contain wildcards, which will result in a LIKE match. """ - if path.find('*') > 0 or path.find('%') > 0: + if path.find('*') >= 0 or path.find('%') >= 0: pattern = True oprtr = 'like' path = path.replace('*', '%') _at_@ -49,7 +49,7 @@ def ls(conn, path, mirror = None): - if path.find('*') > 0 or path.find('%') > 0: + if path.find('*') >= 0 or path.find('%') >= 0: pattern = True oprtr = 'like' path = path.replace('*', '%') _______________________________________________ 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.orgReceived on Tue Feb 03 2009 - 19:12:40 GMT
This archive was generated by hypermail 2.3.0 : Mon Feb 20 2012 - 23:47:04 GMT