pub fn add(&mut self, path: PackagePath, merkle: Hash) -> Result<()> {
        let path = format!("/{}", path.to_string());
        let url = PkgUrl::new_package("fuchsia.com".to_string(), path.clone(), Some(merkle))
            .context(format!("Failed to create package url for {}", path))?;
        self.add_by_url(url);
        Ok(())
    }
/// Add a package to be updated by its path and meta far merkle.
Add a package to be updated by its path and meta far merkle.
Add a package to be updated by its path and meta far merkle .
pub fn add(&mut self, path: PackagePath, merkle: Hash) -> Result<()> {
        let path = format!("/{}", path.to_string());
        let url = PkgUrl::new_package("fuchsia.com".to_string(), path.clone(), Some(merkle))
            .context(format!("Failed to create package url for {}", path))?;
        self.add_by_url(url);
        Ok(())
    }
pub fn add ( & mut self , path : PackagePath , merkle : Hash ) -> Result < ( ) > { let path = format ! ( " " path to_string ( ) ) ; let url = PkgUrl :: new_package ( " " . to_string ( ) , path . clone ( ) , Some ( merkle ) ) . context ( format ! ( " " path ) ) ? ; self . add_by_url ( url ) ; Ok ( ( ) ) }
Add a package to be updated by its path and meta far merkle.
Add a package to be updated by its path and meta far merkle .
&mut self
path
PackagePath
merkle
Hash
&mut self
path
PackagePath
merkle
Hash