Only allow one package per repository

This may be temporary.

Ref #378
This commit is contained in:
Zachary Yedidia
2016-10-05 17:52:39 -04:00
parent a1a307d858
commit fb90e169cb

View File

@@ -155,7 +155,11 @@ func (pr PluginRepository) Fetch() PluginPackages {
TermMessage("Failed to decode repository data:\n", err)
return PluginPackages{}
}
return plugins
if len(plugins) > 0 {
return PluginPackages{plugins[0]}
}
return nil
// return plugins
}
// UnmarshalJSON unmarshals raw json to a PluginVersion