+ }
+ else
+ {
+ logf (LOG_WARN, "Cannot handle file %s", src);
+ }
+}
+
+void repositoryUpdate (struct recordGroup *rGroup)
+{
+ groupRes (rGroup);
+ assert (rGroup->path);
+ if (rGroup->recordId && !strcmp (rGroup->recordId, "file"))
+ {
+ Dict dict;
+ if (!(dict = dict_open (FMATCH_DICT, 50, 1)))
+ {
+ logf (LOG_FATAL, "dict_open fail of %s", FMATCH_DICT);
+ exit (1);
+ }
+ if (*rGroup->path == '\0' || !strcmp(rGroup->path, "-"))
+ {
+ char src[1024];
+ while (scanf ("%s", src) == 1)
+ fileUpdate (dict, rGroup, src);
+ }
+ else
+ fileUpdate (dict, rGroup, rGroup->path);