mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
Build all package refs.
This commit is contained in:
Vendored
+5
@@ -345,3 +345,8 @@ func (collection *PackageCollection) ByKey(key []byte) (*Package, error) {
|
||||
func (collection *PackageCollection) Update(p *Package) error {
|
||||
return collection.db.Put(p.Key(), p.Encode())
|
||||
}
|
||||
|
||||
// AllPackageRefs returns list of all packages as PackageRefList
|
||||
func (collection *PackageCollection) AllPackageRefs() *PackageRefList {
|
||||
return &PackageRefList{Refs: collection.db.KeysByPrefix([]byte("P"))}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user