mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-01-12 03:21:33 +00:00
Ignore empty 'Depends:' while parsing control file. #233
This commit is contained in:
@@ -22,6 +22,12 @@ func parseDependencies(input Stanza, key string) []string {
|
||||
|
||||
delete(input, key)
|
||||
|
||||
value = strings.TrimSpace(value)
|
||||
if value == "" {
|
||||
// empty line is no depdencies
|
||||
return nil
|
||||
}
|
||||
|
||||
result := strings.Split(value, ",")
|
||||
for i := range result {
|
||||
result[i] = strings.TrimSpace(result[i])
|
||||
|
||||
Reference in New Issue
Block a user