mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-29 04:04:29 +00:00
Removed (very old) check for old format entries, since most users switched to new format since 2002.
This commit is contained in:
parent
48068b809b
commit
c721ebe7ed
11
src/elogd.c
11
src/elogd.c
@ -4075,14 +4075,6 @@ int el_build_index(LOGBOOK * lbs, BOOL rebuild)
|
|||||||
xfree(buffer);
|
xfree(buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
// check for old format and upgrade if necessary
|
|
||||||
n = ss_file_find(base_dir, "??????.log", &file_list);
|
|
||||||
if (n > 0) {
|
|
||||||
if (file_list)
|
|
||||||
xfree(file_list);
|
|
||||||
return EL_UPGRADE;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (get_verbose() >= VERBOSE_DEBUG)
|
if (get_verbose() >= VERBOSE_DEBUG)
|
||||||
eprintf("Entries:\n");
|
eprintf("Entries:\n");
|
||||||
|
|
||||||
@ -4286,9 +4278,6 @@ int el_index_logbooks()
|
|||||||
if (status == EL_EMPTY) {
|
if (status == EL_EMPTY) {
|
||||||
if (get_verbose() >= VERBOSE_INFO)
|
if (get_verbose() >= VERBOSE_INFO)
|
||||||
eprintf("Found empty logbook \"%s\"\n", logbook);
|
eprintf("Found empty logbook \"%s\"\n", logbook);
|
||||||
} else if (status == EL_UPGRADE) {
|
|
||||||
eprintf("Please upgrade data files in \"%s\" with the elconv program.\n", data_dir);
|
|
||||||
return EL_UPGRADE;
|
|
||||||
} else if (status != EL_SUCCESS) {
|
} else if (status != EL_SUCCESS) {
|
||||||
eprintf("Error generating index.\n");
|
eprintf("Error generating index.\n");
|
||||||
return status;
|
return status;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user