mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-10-21 10:58:23 +00:00
Allow saving snapshot without package refs loaded. #63
This commit is contained in:
1 parent
bd221bf869
commit
d7ef1a0c4b
1 file changed
+4
-1
+4
-1
@@ -178,7 +178,10 @@ func (collection *SnapshotCollection) Update(snapshot *Snapshot) error {
|
||||
if err != nil {
|
||||
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
|
||||
|
||||
Reference in new issue
Block a user