Author: poeml Date: 2009-06-24 09:07:32 -0600 (Wed, 24 Jun 2009) New Revision: 7602 Modified: trunk/tools/download-redirector-v2/mirrordoctor/mb/testmirror.py Log: mb probefile: use rsync with --list-only when probing for files, and not intending to actually download them. Modified: trunk/tools/download-redirector-v2/mirrordoctor/mb/testmirror.py =================================================================== --- trunk/tools/download-redirector-v2/mirrordoctor/mb/testmirror.py 2009-06-24 15:05:18 UTC (rev 7601) +++ trunk/tools/download-redirector-v2/mirrordoctor/mb/testmirror.py 2009-06-24 15:07:32 UTC (rev 7602) _at_@ -94,13 +94,15 @@ # replaced -r with -d, because it allows to probe for directories # without transferring them recursively. With 92 mirrors tested, it # worked just as well, with a single exception. (ftp3.gwdg.de, which - # presumabely runs a really old rsync server. The system seems to be + # presumably runs a really old rsync server. The system seems to be # SuSE Linux 8.2.) # poeml, Mon Jun 22 18:10:33 CEST 2009 cmd = 'rsync -d --timeout=%d %s %s/' % (TIMEOUT, S.probeurl, tmpdir) + if not S.get_content: + cmd += ' --list-only' (rc, out) = commands.getstatusoutput(cmd) targetfile = os.path.join(tmpdir, os.path.basename(S.filename)) - if os.path.exists(targetfile): + if rc == 0 or os.path.exists(targetfile): S.has_file = True if S.has_file and S.get_digest: S.digest = mb.util.dgst(targetfile) _______________________________________________ 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.orgReceived on Wed Jun 24 2009 - 15:08:16 GMT
This archive was generated by hypermail 2.3.0 : Mon Feb 20 2012 - 23:47:04 GMT