stub out fake installs of available packages
This commit is contained in:
parent
b5d3b6d213
commit
63c5def07f
@ -1,10 +1,25 @@
|
|||||||
package pkg
|
package pkg
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"log"
|
||||||
|
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
|
"mcquay.me/pm/db"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Install fetches and installs pkgs from appropriate remotes.
|
// Install fetches and installs pkgs from appropriate remotes.
|
||||||
func Install(root string, pkgs []string) error {
|
func Install(root string, pkgs []string) error {
|
||||||
|
av, err := db.LoadAvailable(root)
|
||||||
|
if err != nil {
|
||||||
|
return errors.Wrap(err, "loading available db")
|
||||||
|
}
|
||||||
|
|
||||||
|
ms, err := av.Installable(pkgs)
|
||||||
|
if err != nil {
|
||||||
|
return errors.Wrap(err, "checking ability to install")
|
||||||
|
}
|
||||||
|
for _, m := range ms {
|
||||||
|
log.Printf("fake install %v", m)
|
||||||
|
}
|
||||||
return errors.New("NYI")
|
return errors.New("NYI")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user