Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • redox-os/installer
  • Sag0Sag0/installer
  • microcolonel/installer
  • mich/installer
  • potatogim/installer
  • bruceadams/installer
  • rw_van/installer
  • carrot93/installer
  • Ivan/installer
  • josh_williams/installer
  • bjorn3/installer
  • freewilll/installer
  • Chocimier/installer
  • andypython/installer
  • 4lDO2/installer
  • amyipdev/installer
  • coolreader18/installer
  • adi-g15/installer
  • enygmator/installer
  • josh/installer
20 results
Show changes
Commits on Source (2)
...@@ -46,7 +46,7 @@ pub struct FileConfig { ...@@ -46,7 +46,7 @@ pub struct FileConfig {
// TODO: Rewrite impls // TODO: Rewrite impls
impl FileConfig { impl FileConfig {
pub(crate) fn create<P: AsRef<Path>>(self, prefix: P) -> Result<()> { pub(crate) fn create<P: AsRef<Path>>(&self, prefix: P) -> Result<()> {
let path = self.path.trim_start_matches('/'); let path = self.path.trim_start_matches('/');
let target_file = prefix.as_ref() let target_file = prefix.as_ref()
.join(path); .join(path);
......
...@@ -172,12 +172,12 @@ pub fn install_dir<P: AsRef<Path>, S: AsRef<str>>(config: Config, output_dir: P, ...@@ -172,12 +172,12 @@ pub fn install_dir<P: AsRef<Path>, S: AsRef<str>>(config: Config, output_dir: P,
let output_dir = output_dir.to_owned(); let output_dir = output_dir.to_owned();
install_packages(&config, output_dir.to_str().unwrap(), cookbook); for file in &config.files {
for file in config.files {
file.create(&output_dir)?; file.create(&output_dir)?;
} }
install_packages(&config, output_dir.to_str().unwrap(), cookbook);
let mut passwd = String::new(); let mut passwd = String::new();
let mut shadow = String::new(); let mut shadow = String::new();
let mut next_uid = 1000; let mut next_uid = 1000;
......