pub fn add_by_manifest(&mut self, package: PackageManifest) -> Result<()> {
        let path = package.package_path();
        let meta_blob = package.into_blobs().into_iter().find(|blob| blob.path == "meta/");
        match meta_blob {
            Some(meta_blob) => self.add(path, meta_blob.merkle),
            _ => bail!(format!("Failed to find the meta far in package {}", path)),
        }
    }
/// Add a package to be updated by its PackageManifest.
Add a package to be updated by its PackageManifest.
Add a package to be updated by its PackageManifest .
pub fn add_by_manifest(&mut self, package: PackageManifest) -> Result<()> {
        let path = package.package_path();
        let meta_blob = package.into_blobs().into_iter().find(|blob| blob.path == "meta/");
        match meta_blob {
            Some(meta_blob) => self.add(path, meta_blob.merkle),
            _ => bail!(format!("Failed to find the meta far in package {}", path)),
        }
    }
pub fn add_by_manifest ( & mut self , package : PackageManifest ) -> Result < ( ) > { let path = package . package_path ( ) ; let meta_blob = package . into_blobs ( ) . into_iter ( ) . find ( | blob | blob . path == " " ) ; match meta_blob { Some ( meta_blob ) => self . add ( path , meta_blob . merkle ) , _ => bail ! ( format ( " " path ) ) , } }
Add a package to be updated by its PackageManifest.
Add a package to be updated by its PackageManifest .
&mut self
package
PackageManifest
&mut self
package
PackageManifest