[kde-linux/kde-linux-sysupdated] /: do not generate missing caibx
Harald Sitter <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit a083d02936ece1dd137c21b3e00718298416784d by Harald Sitter.
Committed on 28/07/2026 at 14:39.
Pushed by sitter into branch 'master'.
do not generate missing caibx
it can very easily lead to exhausting the systemd time window and
breaking the update because systemd aborts the transfer.
instead just roll with what we've got
M +2 -15 main.go
https://invent.kde.org/kde-linux/kde-linux-sysupdated/-/commit/a083d02936ece1dd137c21b3e00718298416784d
diff --git a/main.go b/main.go
index 83729fc..ca64ad7 100644
--- a/main.go
+++ b/main.go
@@ -14,7 +14,6 @@ import (
"os"
"os/signal"
"path/filepath"
- "runtime"
"strconv"
"strings"
"syscall"
@@ -232,20 +231,8 @@ func file(c *gin.Context) {
index, err := erofsStore.GetIndex(erofs + ".caibx")
if err != nil {
- desync.Log.Warn("Failed to get index for", erofs, ":", err)
- index, _, err = desync.IndexFromFile(
- c,
- erofsPath,
- runtime.NumCPU(),
- remoteIndex.Index.ChunkSizeMin,
- remoteIndex.Index.ChunkSizeAvg,
- remoteIndex.Index.ChunkSizeMax,
- desync.NewProgressBar("Chunking "),
- )
- if err != nil {
- desync.Log.Warn("Failed to create index for", erofs, ":", err)
- continue
- }
+ desync.Log.Warnln("Failed to get index for", erofs, ":", err)
+ continue
}
seed, err := NewIndexSeed("", erofsPath, index)