fix: cub production recipe, serde_derive import, minor cleanup
- recipe: use cargo install for proper binary installation - aur.rs: serde_derive for explicit derive path - main.rs: final noconfirm/force flow cleanup
This commit is contained in:
@@ -65,11 +65,31 @@ impl PackageCreator {
|
||||
output_path: &Path,
|
||||
secret_key_path: &Path,
|
||||
) -> Result<(), CubError> {
|
||||
cub::package::PackageCreator::create_from_stage(stage_dir, output_path, secret_key_path)
|
||||
#[cfg(feature = "full")]
|
||||
{
|
||||
cub::package::PackageCreator::create_from_stage(stage_dir, output_path, secret_key_path)
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "full"))]
|
||||
{
|
||||
let _ = (stage_dir, output_path, secret_key_path);
|
||||
Err(CubError::PackageNotFound(
|
||||
"pkgar creation support is disabled in this build".into(),
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
fn generate_package_toml(rbpkg: &RbPkgBuild) -> String {
|
||||
cub::package::PackageCreator::generate_package_toml(rbpkg)
|
||||
#[cfg(feature = "full")]
|
||||
{
|
||||
cub::package::PackageCreator::generate_package_toml(rbpkg)
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "full"))]
|
||||
{
|
||||
let _ = rbpkg;
|
||||
String::new()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user