From c2260c50db93ea2b26be9948b7f8a3e23556c6b2 Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Thu, 2 May 2024 00:00:37 +0200 Subject: [PATCH] Upgrade description after setting filename. Otherwise warning messages during upgrading cannot print the filename. --- group/description.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/group/description.go b/group/description.go index bfc3fec..ad50ef4 100644 --- a/group/description.go +++ b/group/description.go @@ -441,15 +441,15 @@ func readDescription(name string, allowSubgroups bool) (*Description, error) { if err != nil { return nil, err } + desc.FileName = fileName + desc.fileSize = fi.Size() + desc.modTime = fi.ModTime() + err = upgradeDescription(&desc) if err != nil { return nil, err } - desc.FileName = fileName - desc.fileSize = fi.Size() - desc.modTime = fi.ModTime() - if isSubgroup { if !desc.AutoSubgroups { return nil, os.ErrNotExist