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
4983a7bc
You need to sign in or sign up before continuing.
Commit
4983a7bc
authored
Feb 20, 2010
by
Max Kanat-Alexander
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 546871: Make checksetup.pl not try to fix the permissions of
bugzilla-update.xml, to avoid warnings. r=LpSolit, a=LpSolit
parent
dd9c3652
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
12 deletions
+6
-12
Filesystem.pm
Bugzilla/Install/Filesystem.pm
+0
-1
Update.pm
Bugzilla/Update.pm
+6
-11
No files found.
Bugzilla/Install/Filesystem.pm
View file @
4983a7bc
...
@@ -137,7 +137,6 @@ sub FILESYSTEM {
...
@@ -137,7 +137,6 @@ sub FILESYSTEM {
'docs/style.css'
=>
{
perms
=>
$ws_readable
},
'docs/style.css'
=>
{
perms
=>
$ws_readable
},
'docs/*/rel_notes.txt'
=>
{
perms
=>
$ws_readable
},
'docs/*/rel_notes.txt'
=>
{
perms
=>
$ws_readable
},
'docs/*/README.docs'
=>
{
perms
=>
$owner_readable
},
'docs/*/README.docs'
=>
{
perms
=>
$owner_readable
},
"$datadir/bugzilla-update.xml"
=>
{
perms
=>
$ws_writeable
},
"$datadir/params"
=>
{
perms
=>
$ws_writeable
},
"$datadir/params"
=>
{
perms
=>
$ws_writeable
},
"$datadir/old-params.txt"
=>
{
perms
=>
$owner_readable
},
"$datadir/old-params.txt"
=>
{
perms
=>
$owner_readable
},
"$extensionsdir/create.pl"
=>
{
perms
=>
$owner_executable
},
"$extensionsdir/create.pl"
=>
{
perms
=>
$owner_executable
},
...
...
Bugzilla/Update.pm
View file @
4983a7bc
...
@@ -34,18 +34,13 @@ sub get_notifications {
...
@@ -34,18 +34,13 @@ sub get_notifications {
# Update the local XML file if this one doesn't exist or if
# Update the local XML file if this one doesn't exist or if
# the last modification time (stat[9]) is older than TIME_INTERVAL.
# the last modification time (stat[9]) is older than TIME_INTERVAL.
if
(
!-
e
$local_file
||
(
time
()
-
(
stat
(
$local_file
))[
9
]
>
TIME_INTERVAL
))
{
if
(
!-
e
$local_file
||
(
time
()
-
(
stat
(
$local_file
))[
9
]
>
TIME_INTERVAL
))
{
# Are we sure we didn't try to refresh this file already
unlink
$local_file
;
# Make sure the old copy is away.
# but we failed because we cannot modify its timestamp?
if
(
-
e
$local_file
)
{
my
$can_alter
=
(
-
e
$local_file
)
?
utime
(
undef
,
undef
,
$local_file
)
:
1
;
return
{
error
=>
'no_update'
,
xml_file
=>
$local_file
};
if
(
$can_alter
)
{
unlink
$local_file
;
# Make sure the old copy is away.
my
$error
=
_synchronize_data
();
# If an error is returned, leave now.
return
$error
if
$error
;
}
else
{
return
{
'error'
=>
'no_update'
,
'xml_file'
=>
$local_file
};
}
}
my
$error
=
_synchronize_data
();
# If an error is returned, leave now.
return
$error
if
$error
;
}
}
# If we cannot access the local XML file, ignore it.
# If we cannot access the local XML file, ignore it.
...
...
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