Fix android update system

This commit is contained in:
Vladimir Stoilov
2023-04-12 17:09:38 +02:00
parent 0562180ba9
commit 7cbabd50c4
4 changed files with 22 additions and 4 deletions

View File

@@ -59,3 +59,14 @@ func GetVersion(identifier string) (*updater.ResourceVersion, error) {
return rv, nil
}
// GetVersionWithFullID returns the selected generic version of the given full identifier.
// The returned resource version may not be modified.
func GetVersionWithFullID(identifier string) (*updater.ResourceVersion, error) {
rv, err := registry.GetVersion(identifier)
if err != nil {
return nil, err
}
return rv, nil
}