aboutsummaryrefslogtreecommitdiff
path: root/src/update.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-08 07:36:40 +0100
committerMax Kellermann <max@duempel.org>2009-01-08 07:36:40 +0100
commit628866a065535c43a1a0b45fd66ec5e186cb33ea (patch)
treed9c75f0a7ef3031ae41e1747f391a821e8f4ffe7 /src/update.c
parentbb08679a702f0093077d49f76d5e597f92384fb1 (diff)
update: save the database even if it is empty
Save an empty database, even if the music directory is empty.
Diffstat (limited to 'src/update.c')
-rw-r--r--src/update.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/update.c b/src/update.c
index 6aecd326..ea8b3f82 100644
--- a/src/update.c
+++ b/src/update.c
@@ -647,8 +647,9 @@ static void * update_task(void *_path)
updateDirectory(directory, &st);
}
- if (modified)
+ if (modified || !db_exists())
db_save();
+
progress = UPDATE_PROGRESS_DONE;
event_pipe_emit(PIPE_EVENT_UPDATE);
return NULL;