mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-22 21:04:18 +08:00
Remove pkg_deps binary
This commit is contained in:
parent
9a40987f61
commit
ee25a707f8
7
repo.sh
7
repo.sh
@ -31,11 +31,4 @@ target/release/cook $COOK_OPT $recipes
|
||||
repo="$ROOT/repo/$TARGET"
|
||||
mkdir -p "$repo"
|
||||
|
||||
# Runtime dependencies include both `[package.dependencies]` and dynamically
|
||||
# linked packages discovered by auto_deps.
|
||||
#
|
||||
# The following adds the package dependencies of the recipes to the repo as
|
||||
# well.
|
||||
recipes="$recipes $(target/release/pkg_deps $recipes)"
|
||||
|
||||
target/release/repo_builder "$repo" $recipes
|
||||
|
||||
@ -1,22 +0,0 @@
|
||||
use std::env::args;
|
||||
|
||||
use pkg::{
|
||||
package::{Package, PackageError},
|
||||
PackageName,
|
||||
};
|
||||
|
||||
use cookbook::WALK_DEPTH;
|
||||
|
||||
fn main() -> Result<(), PackageError> {
|
||||
let names: Vec<PackageName> = args()
|
||||
.skip(1)
|
||||
.map(PackageName::new)
|
||||
.collect::<Result<_, _>>()?;
|
||||
|
||||
let packages = Package::new_recursive(&names, WALK_DEPTH)?;
|
||||
for package in packages {
|
||||
println!("{}", package.name);
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
@ -1,4 +1,5 @@
|
||||
use pkg::recipes;
|
||||
use cookbook::WALK_DEPTH;
|
||||
use pkg::{recipes, Package, PackageName};
|
||||
use std::collections::{BTreeMap, HashMap};
|
||||
use std::env;
|
||||
use std::fs::{self, File};
|
||||
@ -24,9 +25,21 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
let repo_dir = args
|
||||
.next()
|
||||
.expect("Usage: repo_builder <REPO_DIR> <recipe1> <recipe2> ...");
|
||||
let recipe_list: Vec<String> = args.collect();
|
||||
let repo_path = Path::new(&repo_dir);
|
||||
|
||||
// Runtime dependencies include both `[package.dependencies]` and dynamically
|
||||
// linked packages discovered by auto_deps.
|
||||
//
|
||||
// The following adds the package dependencies of the recipes to the repo as
|
||||
// well.
|
||||
let recipe_list = Package::new_recursive(
|
||||
&args.map(PackageName::new).collect::<Result<Vec<_>, _>>()?,
|
||||
WALK_DEPTH,
|
||||
)?
|
||||
.into_iter()
|
||||
.map(|pkg| pkg.name.as_str().to_owned())
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
let mut appstream_sources: HashMap<String, PathBuf> = HashMap::new();
|
||||
let mut packages: BTreeMap<String, String> = BTreeMap::new();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user