Esempio n. 1
0
func (dep *Dependency) SatisfiesDependency(pkg interfaces.PackageInterface) bool {
	if dep.Name != pkg.Name() {
		return false
	}

	if dep.Repo != pkg.Repo().Name() {
		return false
	}

	return true
}
func ShortName(p interfaces.PackageInterface) string {
	return filepath.Base(p.Name())
}