sync: Don't warn on remote compressed files
This commit is contained in:
parent
106f1a5e30
commit
ba26dd6bb1
@ -168,10 +168,12 @@ func CheckExerciceFilesPresence(i Importer, exercice *fic.Exercice) (files []str
|
||||
for fname := range digests {
|
||||
if !i.Exists(path.Join(exercice.Path, "files", fname)) && !i.Exists(path.Join(exercice.Path, "files", fname+".gz")) && !i.Exists(path.Join(exercice.Path, "files", fname+".00")) && !i.Exists(path.Join(exercice.Path, "files", fname+".gz.00")) {
|
||||
if pf, exists := paramsFiles[fname]; !exists || pf.URL == "" {
|
||||
if pf, exists := paramsFiles[fname+".gz"]; !exists || pf.URL == "" {
|
||||
errs = append(errs, NewFileError(exercice, fname, fmt.Errorf("unable to read file: No such file or directory. Check your DIGESTS.txt for legacy entries.")))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user