mirror of
https://github.com/mudler/luet.git
synced 2025-09-09 02:59:30 +00:00
Add db copy and clone
This commit is contained in:
@@ -270,6 +270,14 @@ func (db *InMemoryDatabase) getProvide(p Package) (Package, error) {
|
||||
return db.FindPackage(pa)
|
||||
}
|
||||
|
||||
func (db *InMemoryDatabase) Clone(to PackageDatabase) error {
|
||||
return clone(db, to)
|
||||
}
|
||||
|
||||
func (db *InMemoryDatabase) Copy() (PackageDatabase, error) {
|
||||
return copy(db)
|
||||
}
|
||||
|
||||
func (db *InMemoryDatabase) encodePackage(p Package) (string, string, error) {
|
||||
pd, ok := p.(*DefaultPackage)
|
||||
if !ok {
|
||||
|
Reference in New Issue
Block a user