mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-30 04:20:53 +00:00
publish: lock all distributions with MultiDist
This commit is contained in:
+6
-1
@@ -609,7 +609,12 @@ func (p *PublishedRepo) StoragePrefix() string {
|
|||||||
|
|
||||||
// Key returns unique key identifying PublishedRepo
|
// Key returns unique key identifying PublishedRepo
|
||||||
func (p *PublishedRepo) Key() []byte {
|
func (p *PublishedRepo) Key() []byte {
|
||||||
return []byte("U" + p.StoragePrefix() + ">>" + p.Distribution)
|
if p.MultiDist {
|
||||||
|
// do not lock Distribution in MultiDist
|
||||||
|
return []byte("UM" + p.StoragePrefix())
|
||||||
|
} else {
|
||||||
|
return []byte("U" + p.StoragePrefix() + ">>" + p.Distribution)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// RefKey is a unique id for package reference list
|
// RefKey is a unique id for package reference list
|
||||||
|
|||||||
Reference in New Issue
Block a user