• R/O
  • SSH
  • HTTPS

svardos: Commit


Commit MetaInfo

Revision292 (tree)
Time2021-02-11 23:28:14
Authormateuszviste

Log Message

buildidx no longer checks lsm headers, so it is compatible with the simpler lsm format used by SvarDOS

Change Summary

Incremental Difference

--- buildidx/buildidx.c (revision 291)
+++ buildidx/buildidx.c (revision 292)
@@ -7,6 +7,7 @@
77 files. buildidx will generate the index file and save it into the package
88 repository.
99
10+ 11 feb 2021: lsm headers are no longer checked, so it is compatible with the simpler lsm format used by SvarDOS
1011 13 jan 2021: removed the identification line, changed CRC32 to bsum, not creating the listing.txt file and stopped compressing index
1112 23 apr 2017: uncompressed index is no longer created, added CRC32 of zib (bin only) files, if present
1213 28 aug 2016: listing.txt is always written inside the repo dir (instead of inside current dir)
@@ -31,7 +32,7 @@
3132 #include <dirent.h>
3233 #include <sys/types.h>
3334
34-#define pVer "2021-01-13"
35+#define pVer "2021-02-11"
3536
3637
3738 /* computes the BSD sum of a file and returns it. returns 0 on error. */
@@ -111,9 +112,6 @@
111112 /* open the file */
112113 fd = fopen(filename, "rb");
113114 if (fd == NULL) return(-1);
114- /* check the file's header */
115- if (readline_fromfile(fd, linebuff, 64) < 0) return(-1);
116- if (strcasecmp(linebuff, "begin3") != 0) return(-1);
117115 /* read the LSM file line by line */
118116 while (readline_fromfile(fd, linebuff, 127) >= 0) {
119117 for (x = 0;; x++) {
Show on old repository browser