func (snapsup *SnapSetup) MountDir() string { return snap.MountDir(snapsup.Name(), snapsup.Revision()) }
func (ss *SnapSetup) MountDir() string { return snap.MountDir(ss.Name(), ss.Revision()) }
type patch1SideInfo struct { OfficialName string `yaml:"name,omitempty" json:"name,omitempty"` SnapID string `yaml:"snap-id" json:"snap-id"` Revision snap.Revision `yaml:"revision" json:"revision"` Channel string `yaml:"channel,omitempty" json:"channel,omitempty"` Developer string `yaml:"developer,omitempty" json:"developer,omitempty"` EditedSummary string `yaml:"summary,omitempty" json:"summary,omitempty"` EditedDescription string `yaml:"description,omitempty" json:"description,omitempty"` Size int64 `yaml:"size,omitempty" json:"size,omitempty"` Sha512 string `yaml:"sha512,omitempty" json:"sha512,omitempty"` Private bool `yaml:"private,omitempty" json:"private,omitempty"` } var patch1ReadType = func(name string, rev snap.Revision) (snap.Type, error) { snapYamlFn := filepath.Join(snap.MountDir(name, rev), "meta", "snap.yaml") meta, err := ioutil.ReadFile(snapYamlFn) if err != nil { return snap.TypeApp, err } info, err := snap.InfoFromSnapYaml(meta) if err != nil { return snap.TypeApp, err } return info.Type, nil } type patch1Flags int const (