Ejemplo n.º 1
0
func inspectInstance(inst local.PackageInstance, listFiles bool) {
	log.Infof("Instance: %s", inst.Pin())
	if listFiles {
		log.Infof("Package files:")
		for _, f := range inst.Files() {
			if f.Symlink() {
				target, err := f.SymlinkTarget()
				if err != nil {
					log.Infof(" E %s (%s)", f.Name(), err)
				} else {
					log.Infof(" S %s -> %s", f.Name(), target)
				}
			} else {
				log.Infof(" F %s", f.Name())
			}
		}
	}
}