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
3535f6d1
Commit
3535f6d1
authored
Nov 08, 2002
by
gerv%gerv.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 71794 - processmail shouldn't bother checking dependencies unless state…
Bug 71794 - processmail shouldn't bother checking dependencies unless state changes. Patch by gerv; r=myk.
parent
5f52ea9a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
16 deletions
+30
-16
process_bug.cgi
process_bug.cgi
+30
-16
No files found.
process_bug.cgi
View file @
3535f6d1
...
...
@@ -1309,6 +1309,10 @@ foreach my $id (@idlist) {
}
}
# We need to run processmail for dependson/blocked bugs if the dependencies
# change or the status or resolution change. This var keeps track of that.
my
$check_dep_bugs
=
0
;
if
(
defined
$::FORM
{
'dependson'
})
{
my
$me
=
"blocked"
;
my
$target
=
"dependson"
;
...
...
@@ -1353,6 +1357,7 @@ foreach my $id (@idlist) {
LogDependencyActivity
(
$k
,
$snapshot
{
$k
},
$me
,
$target
);
}
LogDependencyActivity
(
$id
,
$oldsnap
,
$target
,
$me
);
$check_dep_bugs
=
1
;
}
my
$tmp
=
$me
;
...
...
@@ -1444,7 +1449,7 @@ foreach my $id (@idlist) {
#
my
$origOwner
=
""
;
my
$origQaContact
=
""
;
foreach
my
$c
(
@::log_columns
)
{
my
$col
=
$c
;
# We modify it, don't want to modify array
# values in place.
...
...
@@ -1491,6 +1496,13 @@ foreach my $id (@idlist) {
RemoveVotes
(
$id
,
0
,
"This bug has been moved to a different product"
);
}
if
(
$col
eq
'bug_status'
&&
IsOpenedState
(
$old
)
ne
IsOpenedState
(
$new
))
{
$check_dep_bugs
=
1
;
}
LogActivityEntry
(
$id
,
$col
,
$old
,
$new
,
$whoid
,
$timestamp
);
$bug_changed
=
1
;
}
...
...
@@ -1568,22 +1580,24 @@ foreach my $id (@idlist) {
||
ThrowTemplateError
(
$template
->
error
());
}
foreach
my
$k
(
keys
(
%
dependencychanged
))
{
$vars
->
{
'mail'
}
=
""
;
open
(
PMAIL
,
"-|"
)
or
exec
(
'./processmail'
,
$k
,
$::COOKIE
{
'Bugzilla_login'
});
$vars
->
{
'mail'
}
.=
$_
while
<
PMAIL
>
;
close
(
PMAIL
);
$vars
->
{
'id'
}
=
$k
;
$vars
->
{
'type'
}
=
"dep"
;
# Let the user know we checked to see if we should email notice
# of this change to users with a relationship to the dependent
# bug and who did and didn't receive email about it.
$template
->
process
(
"bug/process/results.html.tmpl"
,
$vars
)
||
ThrowTemplateError
(
$template
->
error
());
if
(
$check_dep_bugs
)
{
foreach
my
$k
(
keys
(
%
dependencychanged
))
{
$vars
->
{
'mail'
}
=
""
;
open
(
PMAIL
,
"-|"
)
or
exec
(
'./processmail'
,
$k
,
$::COOKIE
{
'Bugzilla_login'
});
$vars
->
{
'mail'
}
.=
$_
while
<
PMAIL
>
;
close
(
PMAIL
);
$vars
->
{
'id'
}
=
$k
;
$vars
->
{
'type'
}
=
"dep"
;
# Let the user know we checked to see if we should email notice
# of this change to users with a relationship to the dependent
# bug and who did and didn't receive email about it.
$template
->
process
(
"bug/process/results.html.tmpl"
,
$vars
)
||
ThrowTemplateError
(
$template
->
error
());
}
}
}
# Show next bug, if it exists.
...
...
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