Michal 2 years ago
parent 3c31cb5c89
commit a1276fb7d8

@ -2,7 +2,7 @@ use std::path::Path;
use std::process::Command; use std::process::Command;
use std::{env, fs}; use std::{env, fs};
use crate::{log, crash, workspace::read_cfg, internal::AppExitCode}; use crate::{crash, internal::AppExitCode, log, workspace::read_cfg};
pub fn generate(verbose: bool) { pub fn generate(verbose: bool) {
// Read config struct from mlc.toml // Read config struct from mlc.toml
@ -32,7 +32,6 @@ pub fn generate(verbose: bool) {
.unwrap(); .unwrap();
log!(verbose, "Copied out packages to {}", name); log!(verbose, "Copied out packages to {}", name);
// Enter repository directory // Enter repository directory
env::set_current_dir(&name).unwrap(); env::set_current_dir(&name).unwrap();
log!(verbose, "Current dir: {:?}", env::current_dir().unwrap()); log!(verbose, "Current dir: {:?}", env::current_dir().unwrap());
@ -108,7 +107,10 @@ pub fn generate(verbose: bool) {
Command::new("bash") Command::new("bash")
.args(&[ .args(&[
"-c", "-c",
&format!("GLOBIGNORE=\"*.sig\" repo-add {}.tar.gz *.pkg.tar.{}", db, suffix), &format!(
"GLOBIGNORE=\"*.sig\" repo-add {}.tar.gz *.pkg.tar.{}",
db, suffix
),
]) ])
.spawn() .spawn()
.unwrap() .unwrap()

Loading…
Cancel
Save