If repo's distribution is empty, don't use it.

This commit is contained in:
Andrey Smirnov
2014-02-10 14:23:55 +04:00
parent 80100a2eda
commit ecbd146cd3
+3 -1
View File
@@ -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")
} }
} }