Export LoadAvailable

This commit is contained in:
Stephen McQuay 2018-03-03 21:29:55 -08:00
parent 14a456f006
commit b5d3b6d213
Signed by untrusted user: sm
GPG Key ID: 4E4B72F479BA3CE5

View File

@ -51,7 +51,7 @@ func Pull(root string) error {
// ListAvailable prints all installable packages
func ListAvailable(root string, w io.Writer) error {
db, err := loadAvailable(root)
db, err := LoadAvailable(root)
if err != nil {
return errors.Wrap(err, "loading")
}
@ -61,7 +61,8 @@ func ListAvailable(root string, w io.Writer) error {
return nil
}
func loadAvailable(root string) (pm.Available, error) {
// LoadAvailable returns the collection of available packages
func LoadAvailable(root string) (pm.Available, error) {
r := pm.Available{}
dbn := filepath.Join(root, rn)