lib/db: Update db when only local flags change (fixes #6008) (#6007)

This commit is contained in:
Simon Frei
2019-09-12 08:47:39 +02:00
committed by GitHub
parent f7b2e79fdc
commit 28b6e8b063
3 changed files with 30 additions and 3 deletions

View File

@@ -562,7 +562,7 @@ func (e errorSuggestion) Error() string {
// unchanged checks if two files are the same and thus don't need to be updated.
// Local flags or the invalid bit might change without the version
// being bumped. The IsInvalid() method handles both.
// being bumped.
func unchanged(nf, ef FileIntf) bool {
return ef.FileVersion().Equal(nf.FileVersion()) && ef.IsInvalid() == nf.IsInvalid()
return ef.FileVersion().Equal(nf.FileVersion()) && ef.IsInvalid() == nf.IsInvalid() && ef.FileLocalFlags() == nf.FileLocalFlags()
}