Fix cub pkgutils compatibility for desktop builds
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -13,6 +13,6 @@ path = "src/main.rs"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
cub-lib = { path = "../cub-lib" }
|
cub-lib = { path = "../cub-lib" }
|
||||||
redox-pkg = { path = "../../../../../../recipes/core/pkgutils/source/pkg-lib", default-features = false, features = ["indicatif"] }
|
redox-pkg = { git = "https://gitlab.redox-os.org/redox-os/pkgutils.git", default-features = false, features = ["indicatif"] }
|
||||||
clap = { workspace = true }
|
clap = { workspace = true }
|
||||||
termion = "4.0.6"
|
termion = "4.0.6"
|
||||||
|
|||||||
@@ -223,7 +223,7 @@ fn install_package(context: &AppContext, package: &str) -> Result<(), Box<dyn st
|
|||||||
let package_name = PackageName::new(package.to_string())?;
|
let package_name = PackageName::new(package.to_string())?;
|
||||||
let mut library = context.open_library()?;
|
let mut library = context.open_library()?;
|
||||||
|
|
||||||
match library.install(vec![package_name.clone()], false) {
|
match library.install(vec![package_name.clone()]) {
|
||||||
Ok(()) => {
|
Ok(()) => {
|
||||||
let applied = apply_library_changes(&mut library)?;
|
let applied = apply_library_changes(&mut library)?;
|
||||||
println!(
|
println!(
|
||||||
@@ -318,7 +318,7 @@ fn build_local_dir(context: &AppContext, dir: &Path) -> Result<(), Box<dyn std::
|
|||||||
|
|
||||||
let package_name = PackageName::new(rbpkg.package.name.clone())?;
|
let package_name = PackageName::new(rbpkg.package.name.clone())?;
|
||||||
let mut library = context.open_local_library(&local_repo_dir, &public_key_dir)?;
|
let mut library = context.open_local_library(&local_repo_dir, &public_key_dir)?;
|
||||||
library.install(vec![package_name], false)?;
|
library.install(vec![package_name])?;
|
||||||
let applied = apply_library_changes(&mut library)?;
|
let applied = apply_library_changes(&mut library)?;
|
||||||
|
|
||||||
println!(
|
println!(
|
||||||
|
|||||||
Reference in New Issue
Block a user