update: don't print debug message when song was not modified
When a song file was not modified, MPD printed the debug message "not a directory or music", because the first "if" branch did not return.
This commit is contained in:
@ -252,6 +252,8 @@ updateInDirectory(struct directory *directory,
|
|||||||
delete_song(directory, song);
|
delete_song(directory, song);
|
||||||
return UPDATE_RETURN_UPDATED;
|
return UPDATE_RETURN_UPDATED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return UPDATE_RETURN_NOUPDATE;
|
||||||
} else if (S_ISDIR(st->st_mode)) {
|
} else if (S_ISDIR(st->st_mode)) {
|
||||||
struct directory *subdir;
|
struct directory *subdir;
|
||||||
enum update_return ret;
|
enum update_return ret;
|
||||||
@ -270,11 +272,10 @@ updateInDirectory(struct directory *directory,
|
|||||||
delete_directory(subdir);
|
delete_directory(subdir);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
} else {
|
||||||
|
DEBUG("update: %s is not a directory or music\n", name);
|
||||||
|
return UPDATE_RETURN_NOUPDATE;
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG("update: %s is not a directory or music\n", name);
|
|
||||||
|
|
||||||
return UPDATE_RETURN_NOUPDATE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* we don't look at hidden files nor files with newlines in them */
|
/* we don't look at hidden files nor files with newlines in them */
|
||||||
|
Reference in New Issue
Block a user