/// Generates an uncompressed tar archive with `control`, `md5sums`, and others
Generates an uncompressed tar archive with `control`, `md5sums`, and others
Generates an uncompressed tar archive with ` control ` ` md5sums ` and others
pub fn generate_archive(options: &Config, time: u64, asset_hashes: HashMap<PathBuf, Digest>, listener: &mut dyn Listener) -> CDResult<Vec<u8>> {
    let mut archive = Archive::new(time);
    generate_md5sums(&mut archive, options, asset_hashes)?;
    generate_control(&mut archive, options, listener)?;
    if let Some(ref files) = options.conf_files {
        generate_conf_files(&mut archive, files)?;
    }
    generate_scripts(&mut archive, options)?;
    if let Some(ref file) = options.triggers_file {
        generate_triggers_file(&mut archive, file)?;
    }
    Ok(archive.into_inner()?)
}
pub fn generate_archive ( options : & Config , time : u64 , asset_hashes : HashMap < PathBuf , Digest > , listener : & mut dyn Listener ) -> CDResult < Vec < u8 > > { let mut archive = Archive :: new ( time ) ; generate_md5sums ( & mut archive , options , asset_hashes ) ? ; generate_control ( & mut archive , options , listener ) ? ; if let Some ( ref files ) = options . conf_files { generate_conf_files ( & mut archive , files ) ? ; } generate_scripts ( & mut archive , options ) ? ; if let Some ( ref file ) = options . triggers_file { generate_triggers_file ( & mut archive , file ) ? ; } Ok ( archive . into_inner ( ) ? ) }
Generates an uncompressed tar archive with `control`, `md5sums`, and others
Generates an uncompressed tar archive with ` control ` ` md5sums ` and others
options
&Config
time
u64
asset_hashes
HashMap<PathBuf, Digest>
listener
&mut dyn Listener