mirror of
https://github.com/edu4rdshl/blackarch-devtools.git
synced 2026-07-17 23:24:47 +00:00
Fix issue when the missing package is in another directory.
This commit is contained in:
parent
48105e8db3
commit
ca5503c354
2 changed files with 11 additions and 1 deletions
|
|
@ -18,6 +18,8 @@ args:
|
||||||
long: build
|
long: build
|
||||||
help: Build package from PKGBUILD in clean chroot environment.
|
help: Build package from PKGBUILD in clean chroot environment.
|
||||||
takes_value: false
|
takes_value: false
|
||||||
|
conflicts_with:
|
||||||
|
- install-missing
|
||||||
- test:
|
- test:
|
||||||
short: t
|
short: t
|
||||||
long: test
|
long: test
|
||||||
|
|
|
||||||
|
|
@ -190,7 +190,15 @@ pub fn build_package_with_missing_deps(missing: &[&str]) {
|
||||||
let chroot_blackarch = get_vars("chroot_blackarch");
|
let chroot_blackarch = get_vars("chroot_blackarch");
|
||||||
let devtools_nspawn = get_vars("nspawn");
|
let devtools_nspawn = get_vars("nspawn");
|
||||||
for missing in missing.iter() {
|
for missing in missing.iter() {
|
||||||
let copy_path: String = [&chroot_blackarch, "root/", &missing].concat();
|
let copy_path: String = [
|
||||||
|
&chroot_blackarch,
|
||||||
|
"root/",
|
||||||
|
&missing
|
||||||
|
.split("/")
|
||||||
|
.last()
|
||||||
|
.expect("Failed to gest package name."),
|
||||||
|
]
|
||||||
|
.concat();
|
||||||
println!("{}", &missing);
|
println!("{}", &missing);
|
||||||
println!("{}", ©_path);
|
println!("{}", ©_path);
|
||||||
Command::new("sudo")
|
Command::new("sudo")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue