projects
/
m17n
/
m17n-lib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
436c78d
)
(mdatabase__check): If necessary, update database and
author
handa
<handa>
Thu, 1 Mar 2007 11:53:54 +0000
(11:53 +0000)
committer
handa
<handa>
Thu, 1 Mar 2007 11:53:54 +0000
(11:53 +0000)
find a new file.
src/database.c
patch
|
blob
|
history
diff --git
a/src/database.c
b/src/database.c
index
5695ea0
..
108dcf8
100644
(file)
--- a/
src/database.c
+++ b/
src/database.c
@@
-1058,6
+1058,17
@@
mdatabase__check (MDatabase *mdb)
return -1;
if (db_info->time < buf.st_mtime)
return 0;
+ if (db_info->status == MDB_STATUS_AUTO
+ && db_info->filename != db_info->absolute_filename)
+ {
+ MDatabase *new;
+
+ mdatabase__update ();
+ new = find_database (mdb->tag);
+ if (new != mdb)
+ return 0;
+ }
+
return 1;
}