Adds pm pull

This commit is contained in:
sm
2018-03-02 23:23:11 -08:00
parent 2a0220cddc
commit 74d360f6d7
5 changed files with 90 additions and 8 deletions
+12
View File
@@ -1,6 +1,8 @@
package pm
import (
"net/url"
"github.com/pkg/errors"
)
@@ -38,3 +40,13 @@ func (a Available) Update(o Available) error {
}
return nil
}
func (a Available) SetRemote(u url.URL) {
for n, vers := range a {
for v, _ := range vers {
m := a[n][v]
m.Remote = u
a[n][v] = m
}
}
}