pub fn cancel_install(&mut self, package_hash: &Hash) {
        match self.packages.get(package_hash).map(|pwi| &pwi.package) {
            Some(Package::Pending) | Some(Package::WithMetaFar { .. }) => {
                self.packages.remove(package_hash);
            }
            Some(Package::Active { .. }) => {
                fx_log_warn!("Unable to cancel install for active package {}", package_hash);
            }
            None => {
                fx_log_err!("Unable to cancel install for unknown package {}", package_hash);
            }
        }
    }
/// Notifies dynamic index that the given package installation has been canceled.
Notifies dynamic index that the given package installation has been canceled.
Notifies dynamic index that the given package installation has been canceled .
pub fn cancel_install(&mut self, package_hash: &Hash) {
        match self.packages.get(package_hash).map(|pwi| &pwi.package) {
            Some(Package::Pending) | Some(Package::WithMetaFar { .. }) => {
                self.packages.remove(package_hash);
            }
            Some(Package::Active { .. }) => {
                fx_log_warn!("Unable to cancel install for active package {}", package_hash);
            }
            None => {
                fx_log_err!("Unable to cancel install for unknown package {}", package_hash);
            }
        }
    }
pub fn cancel_install ( & mut self , package_hash : & Hash ) { match self . packages . get ( package_hash ) . map ( | pwi | & pwi . package ) { Some ( Package :: Pending ) | Some ( Package :: WithMetaFar { .. } ) => { self . packages . remove ( package_hash ) ; } Some ( Package :: Active { .. } ) => { fx_log_warn ! ( " " package_hash ) ; } None => { fx_log_err ! ( " " package_hash ) ; } } }
Notifies dynamic index that the given package installation has been canceled.
Notifies dynamic index that the given package installation has been canceled .
&mut self
package_hash
&Hash
&mut self
package_hash
&Hash