mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
Command aptly publish switch to switch published snapshot. #8
This commit is contained in:
@@ -223,6 +223,16 @@ func (p *PublishedRepo) UpdateLocalRepo() {
|
||||
p.rePublishing = true
|
||||
}
|
||||
|
||||
func (p *PublishedRepo) UpdateSnapshot(snapshot *Snapshot) {
|
||||
if p.SourceKind != "snapshot" {
|
||||
panic("not snapshot publish")
|
||||
}
|
||||
|
||||
p.snapshot = snapshot
|
||||
p.SourceUUID = snapshot.UUID
|
||||
p.rePublishing = true
|
||||
}
|
||||
|
||||
// Encode does msgpack encoding of PublishedRepo
|
||||
func (p *PublishedRepo) Encode() []byte {
|
||||
var buf bytes.Buffer
|
||||
|
||||
Reference in New Issue
Block a user