mirror of
https://github.com/jech/galene.git
synced 2024-11-09 18:25:58 +01:00
Upgrade description after setting filename.
Otherwise warning messages during upgrading cannot print the filename.
This commit is contained in:
parent
a76f225bc0
commit
c2260c50db
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue