summaryrefslogtreecommitdiffstats
path: root/collectstats.pl
diff options
context:
space:
mode:
authormyk%mozilla.org <>2002-11-05 10:53:59 +0100
committermyk%mozilla.org <>2002-11-05 10:53:59 +0100
commit6a64cd597b36411fa01d681c693786750b68c92c (patch)
treed24789dab5efebdaa47c0f1c8936428f15be9935 /collectstats.pl
parent952d1ad687cb0ad29188c71fab2ad40e5ec984ba (diff)
downloadbugzilla-6a64cd597b36411fa01d681c693786750b68c92c.tar.gz
bugzilla-6a64cd597b36411fa01d681c693786750b68c92c.tar.xz
Fix for bug 156548: XUL implementation of duplicates report.
Diffstat (limited to 'collectstats.pl')
-rwxr-xr-xcollectstats.pl17
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;