pub fn update_app(
        &mut self,
        apps_item: &AppsItem,
        manifest: &Manifest,
    ) -> Result<(), RegistrationError> {
        // TODO: need to unregister something for update if needed.

        Ok(self.register_app(apps_item, manifest)?)
    }
// Register an app to the registry
// When re-install an existing app, we just overwrite existing one.
// In future, we could change the policy.
Register an app to the registry
When re-install an existing app, we just overwrite existing one.
In future, we could change the policy.
Register an app to the registry When re - install an existing app we just overwrite existing one . In future we could change the policy .
pub fn update_app(
        &mut self,
        apps_item: &AppsItem,
        manifest: &Manifest,
    ) -> Result<(), RegistrationError> {
        // TODO: need to unregister something for update if needed.
        Ok(self.register_app(apps_item, manifest)?)
    }
pub fn update_app ( & mut self , apps_item : & AppsItem , manifest : & Manifest , ) -> Result < ( ) , RegistrationError > { // TODO: need to unregister something for update if needed. Ok ( self . register_app ( apps_item , manifest ) ? ) }
Register an app to the registry
When re-install an existing app, we just overwrite existing one.
Register an app to the registry When re - install an existing app we just overwrite existing one .
&mut self
apps_item
&AppsItem
manifest
&Manifest
&mut self
apps_item
&AppsItem
manifest
&Manifest