diff options
author | myk%mozilla.org <> | 2002-11-05 09:53:59 +0000 |
---|---|---|
committer | myk%mozilla.org <> | 2002-11-05 09:53:59 +0000 |
commit | 6a64cd597b36411fa01d681c693786750b68c92c (patch) | |
tree | d24789dab5efebdaa47c0f1c8936428f15be9935 /collectstats.pl | |
parent | Bug 173571 - Turn "all selected" into "none selected" for efficiency. Patch b... (diff) | |
download | bugzilla-6a64cd597b36411fa01d681c693786750b68c92c.tar.gz bugzilla-6a64cd597b36411fa01d681c693786750b68c92c.tar.bz2 bugzilla-6a64cd597b36411fa01d681c693786750b68c92c.zip |
Fix for bug 156548: XUL implementation of duplicates report.
Diffstat (limited to 'collectstats.pl')
-rwxr-xr-x | collectstats.pl | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/collectstats.pl b/collectstats.pl index 8caf92d77..61e7cf204 100755 --- a/collectstats.pl +++ b/collectstats.pl @@ -53,6 +53,23 @@ foreach (@myproducts) { &calculate_dupes(); +# Generate a static RDF file containing the default view of the duplicates data. +open(CGI, "REQUEST_METHOD=GET QUERY_STRING=ctype=rdf ./duplicates.cgi |") + || die "can't fork duplicates.cgi: $!"; +open(RDF, ">data/duplicates.tmp") + || die "can't write to data/duplicates.tmp: $!"; +my $headers_done = 0; +while (<CGI>) { + print RDF if $headers_done; + $headers_done = 1 if $_ eq "\n"; +} +close CGI; +close RDF; +if (-s "data/duplicates.tmp") { + rename("data/duplicates.rdf", "data/duplicates-old.rdf"); + rename("data/duplicates.tmp", "data/duplicates.rdf"); +} + sub check_data_dir { my $dir = shift; |