Key returns unique key identifying package
(prefix string)
| 215 | |
| 216 | // Key returns unique key identifying package |
| 217 | func (p *Package) Key(prefix string) []byte { |
| 218 | if p.V06Plus { |
| 219 | return []byte(fmt.Sprintf("%sP%s %s %s %08x", prefix, p.Architecture, p.Name, p.Version, p.FilesHash)) |
| 220 | } |
| 221 | |
| 222 | return p.ShortKey(prefix) |
| 223 | } |
| 224 | |
| 225 | // ShortKey returns key for the package that should be unique in one list |
| 226 | func (p *Package) ShortKey(prefix string) []byte { |