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