mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-10-15 10:07:24 +00:00
If repo's distribution is empty, don't use it.
This commit is contained in:
1 parent
80100a2eda
commit
ecbd146cd3
1 file changed
+3
-1
+3
-1
@@ -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