mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-01 04:40:38 +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
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
p.Files[i].Filename = relPath
|
if p.IsSource {
|
||||||
|
p.Extra["Directory"] = filepath.Dir(relPath)
|
||||||
|
} else {
|
||||||
|
p.Files[i].Filename = relPath
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in New Issue
Block a user