[Pkg-bugzilla-commits] r35 - in trunk/bugzilla-2.16.7: . debian

Alexis Sukrieh sukria-guest@costa.debian.org
Tue, 22 Mar 2005 14:37:35 +0100


Author: sukria-guest
Date: 2005-03-22 14:37:34 +0100 (Tue, 22 Mar 2005)
New Revision: 35

Modified:
   trunk/bugzilla-2.16.7/debian/changelog
   trunk/bugzilla-2.16.7/showdependencygraph.cgi
Log:
  * showdependencygraph.cgi
    + Changed the $var_dir value in showdependencygraph.cgi to
      /usr/share/bugzilla/web.
    + Fixed a bug when generating the url path of the /data/webdot/*.dot.map files.
    (closes: #300857)



Modified: trunk/bugzilla-2.16.7/debian/changelog
===================================================================
--- trunk/bugzilla-2.16.7/debian/changelog	2005-03-22 13:17:17 UTC (rev 34)
+++ trunk/bugzilla-2.16.7/debian/changelog	2005-03-22 13:37:34 UTC (rev 35)
@@ -7,11 +7,13 @@
       - New de.po file for Debconf l10n (Jens Nachtigall).
       - New ca.po file for Debconf l10n (Miguel Gea Milvaques).
     (closes: #294433, #294159, #294234)
-  * Changed the $var_dir value in showdependencygraph.cgi to
-    /usr/share/bugzilla/web.
+  * showdependencygraph.cgi
+    + Changed the $var_dir value in showdependencygraph.cgi to
+      /usr/share/bugzilla/web.
+    + Fixed a bug when generating the url path of the /data/webdot/*.dot.map files.
     (closes: #300857)
 
- -- Alexis Sukrieh <sukria@sukria.net>  Tue, 22 Mar 2005 14:03:35 +0100
+ -- Alexis Sukrieh <sukria@sukria.net>  Tue, 22 Mar 2005 14:35:15 +0100
 
 bugzilla (2.16.7-4) unstable; urgency=low
 

Modified: trunk/bugzilla-2.16.7/showdependencygraph.cgi
===================================================================
--- trunk/bugzilla-2.16.7/showdependencygraph.cgi	2005-03-22 13:17:17 UTC (rev 34)
+++ trunk/bugzilla-2.16.7/showdependencygraph.cgi	2005-03-22 13:37:34 UTC (rev 35)
@@ -1,4 +1,4 @@
-#!/usr/bonsaitools/bin/perl -wT
+#!/usr/bin/perl -wT
 # -*- Mode: perl; indent-tabs-mode: nil -*-
 #
 # The contents of this file are subject to the Mozilla Public
@@ -25,7 +25,7 @@
 use strict;
 
 use lib '/usr/share/bugzilla/lib';
-my $var_dir="/usr/share/bugzilla/web"
+my $var_dir="/usr/share/bugzilla/web";
 
 use File::Temp;
 
@@ -177,7 +177,10 @@
 
 if ($webdotbase =~ /^https?:/) {
      # Remote dot server
-     my $url = PerformSubsts($webdotbase) . $filename;
+     my $url_filename = $filename;
+     $url_filename =~ s/^.*(data\/webdot.*)$/$1/;
+     my $url = PerformSubsts($webdotbase) . $url_filename;
+     
      $vars->{'image_url'} = $url . ".gif";
      $vars->{'map_url'} = $url . ".map";
 } else {