mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
Package might specify its own source pkg version.
This commit is contained in:
Vendored
+5
-1
@@ -254,7 +254,11 @@ func (p *Package) GetDependencies(options int) (dependencies []string) {
|
||||
}
|
||||
|
||||
if options&DepFollowSource == DepFollowSource && p.Source != "" {
|
||||
dependencies = append(dependencies, fmt.Sprintf("%s (= %s) {source}", p.Source, p.Version))
|
||||
if strings.Index(p.Source, ")") != -1 {
|
||||
dependencies = append(dependencies, fmt.Sprintf("%s {source}", p.Source))
|
||||
} else {
|
||||
dependencies = append(dependencies, fmt.Sprintf("%s (= %s) {source}", p.Source, p.Version))
|
||||
}
|
||||
}
|
||||
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user