Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
83b1b0ff
Commit
83b1b0ff
authored
Feb 28, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: don't update unchanged archive
When the mtime of an archive time hasn't changed, don't update it again.
parent
2aebbf84
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
update.c
src/update.c
+6
-1
No files found.
src/update.c
View file @
83b1b0ff
...
...
@@ -373,6 +373,12 @@ update_archive_file(struct directory *parent, const char *name,
struct
directory
*
directory
;
char
*
filepath
;
directory
=
dirvec_find
(
&
parent
->
children
,
name
);
if
(
directory
!=
NULL
&&
directory
->
mtime
==
st
->
st_mtime
)
/* MPD has already scanned the archive, and it hasn't
changed since - don't consider updating it */
return
;
path_fs
=
map_directory_child_fs
(
parent
,
name
);
/* open archive */
...
...
@@ -386,7 +392,6 @@ update_archive_file(struct directory *parent, const char *name,
g_debug
(
"archive %s opened"
,
path_fs
);
g_free
(
path_fs
);
directory
=
dirvec_find
(
&
parent
->
children
,
name
);
if
(
directory
==
NULL
)
{
g_debug
(
"creating archive directory: %s"
,
name
);
directory
=
make_subdir
(
parent
,
name
);
...
...
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