Michal 2 years ago
parent 6074f6cab8
commit 8970931ff1
No known key found for this signature in database
GPG Key ID: A6A1A4DCB22279B9

@ -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