Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
32b928ba
Commit
32b928ba
authored
Apr 17, 2008
by
justdave%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 429379: collectstats.pl fails if ./graphs is a symlink
r=mkanat, a=mkanat
parent
e347558d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
collectstats.pl
collectstats.pl
+5
-1
No files found.
collectstats.pl
View file @
32b928ba
...
...
@@ -33,6 +33,7 @@
use
AnyDBM_File
;
use
strict
;
use
IO::
Handle
;
use
Cwd
;
use
lib
qw(. lib)
;
...
...
@@ -50,10 +51,12 @@ use Bugzilla::Field;
$|
=
1
;
# Tidy up after graphing module
my
$cwd
=
Cwd::
getcwd
();
if
(
chdir
(
"graphs"
))
{
unlink
<./*.
gif
>
;
unlink
<./*.
png
>
;
chdir
(
".."
);
# chdir("..") doesn't work if graphs is a symlink, see bug 429378
chdir
(
$cwd
);
}
# This is a pure command line script.
...
...
@@ -61,6 +64,7 @@ Bugzilla->usage_mode(USAGE_MODE_CMDLINE);
my
$dbh
=
Bugzilla
->
switch_to_shadow_db
();
# To recreate the daily statistics, run "collectstats.pl --regenerate" .
my
$regenerate
=
0
;
if
(
$#ARGV
>=
0
&&
$ARGV
[
0
]
eq
"--regenerate"
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment