--- yaouh.py 2009-02-09 13:32:59.000000000 +0100 +++ ../public_html/openmoko/yaouhx.py 2009-02-09 13:19:33.000000000 +0100 @@ -150,21 +150,27 @@ for root, dirs, files in os.walk(dir): for name in files: i=i+1 + self.pbar.set_fraction(p) + p=p+ip + + #in the if-test, use "0" for yaouh0.py, + #use "1" for yaouh1.py, and so on + #up to yaouh9.py + if name[len(name)-5] != "0" : + continue + url = self.create_url(plain_url, root, name[:name.find('.')], invert) command_curl = "curl -A yaouh -I \"" + url + "\" --stderr /dev/null | grep ETag | cut -d \" \" -f 2" curl=os.popen(command_curl) etag=curl.read() etag=etag.replace("\"", "").rstrip() - + command_md5 = "md5sum " + join(root, name) md5sum=os.popen(command_md5) md5=md5sum.read() md5=string.split(md5, " ") md5=md5[0] - self.pbar.set_fraction(p) - - p=p+ip if etag != md5: c=c+1 self.command_wget = "wget --user-agent yaouh -q " + url + " -O " + join(root, name) + " &"