mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-08 22:30:41 +00:00
Allow saving snapshot without package refs loaded. #63
This commit is contained in:
+4
-1
@@ -178,7 +178,10 @@ func (collection *SnapshotCollection) Update(snapshot *Snapshot) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
return collection.db.Put(snapshot.RefKey(), snapshot.packageRefs.Encode())
|
if snapshot.packageRefs != nil {
|
||||||
|
return collection.db.Put(snapshot.RefKey(), snapshot.packageRefs.Encode())
|
||||||
|
}
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// LoadComplete loads additional information about snapshot
|
// LoadComplete loads additional information about snapshot
|
||||||
|
|||||||
Reference in New Issue
Block a user