mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-01-12 03:21:33 +00:00
If repo's distribution is empty, don't use it.
This commit is contained in:
@@ -81,7 +81,9 @@ func aptlyPublishSnapshot(cmd *commander.Command, args []string) error {
|
||||
if distribution == "" {
|
||||
if sourceRepo != nil {
|
||||
distribution = sourceRepo.Distribution
|
||||
} else {
|
||||
}
|
||||
|
||||
if distribution == "" {
|
||||
return fmt.Errorf("unable to guess distribution name, please specify explicitly")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user