1
0

feat: use snapshots only in case of failed fetch from repos

This commit is contained in:
dump_stack() 2023-05-16 19:37:57 +00:00
parent 18426775b9
commit e7614ef3a7
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -210,7 +210,7 @@ func ContainerCommands(km config.KernelMask) (commands []string) {
cmdf("echo '%s' >> /etc/apt/sources.list", repo) cmdf("echo '%s' >> /etc/apt/sources.list", repo)
} }
} else { } else {
cmdf("sed -i " + cmdf("apt-get update || sed -i " +
"-e '/snapshot/!d' " + "-e '/snapshot/!d' " +
"-e 's/# deb/deb [check-valid-until=no trusted=yes]/' " + "-e 's/# deb/deb [check-valid-until=no trusted=yes]/' " +
"/etc/apt/sources.list") "/etc/apt/sources.list")