mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-08 22:30:41 +00:00
Regenerate Directory: field for source packages while publishing.
This commit is contained in:
Vendored
+5
-1
@@ -360,7 +360,11 @@ func (p *Package) LinkFromPool(packageRepo *Repository, prefix string, component
|
||||
return err
|
||||
}
|
||||
|
||||
p.Files[i].Filename = relPath
|
||||
if p.IsSource {
|
||||
p.Extra["Directory"] = filepath.Dir(relPath)
|
||||
} else {
|
||||
p.Files[i].Filename = relPath
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user