Verified Commit 60258dc2 authored by Jelle van der Waa's avatar Jelle van der Waa 🚧
Browse files

Rename rebuilder to arch-rebuild-order

rebuilder is a too generic name and rebuilderd already exists in the
Arch Linux repository which might cause some confusion. As the tool is
Arch Linux specific the name is prefixed with arch- and as the tool does
not actually rebuild it is named 'rebuild-order'.

Closes: #6
parent a3be4a0d
......@@ -25,6 +25,18 @@ dependencies = [
"winapi",
]
[[package]]
name = "arch-rebuild-order"
version = "0.1.0"
dependencies = [
"alpm",
"petgraph",
"rstest",
"structopt",
"tar",
"tempfile",
]
[[package]]
name = "atty"
version = "0.2.14"
......@@ -249,18 +261,6 @@ dependencies = [
"rand_core",
]
[[package]]
name = "rebuilder"
version = "0.1.0"
dependencies = [
"alpm",
"petgraph",
"rstest",
"structopt",
"tar",
"tempfile",
]
[[package]]
name = "redox_syscall"
version = "0.1.57"
......
[package]
name = "rebuilder"
name = "arch-rebuild-order"
version = "0.1.0"
authors = ["Jelle van der Waa <jelle@archlinux.org>"]
edition = "2018"
description = "A CLI tool to determine the rebuild order of provided package(s)."
documentation = "https://gitlab.archlinux.org/archlinux/rebuilder"
documentation = "https://gitlab.archlinux.org/archlinux/arch-rebuild-order"
readme = "README.md"
homepage = "https://gitlab.archlinux.org/archlinux/rebuilder"
repository = "https://gitlab.archlinux.org/archlinux/rebuilder"
homepage = "https://gitlab.archlinux.org/archlinux/arch-rebuild-order"
repository = "https://gitlab.archlinux.org/archlinux/arch-rebuild-order"
license-file = "LICENSE"
keywords = ["archlinux", "build", "alpm"]
categories = ["command-line-utilities"]
......
# Arch Linux Rebuilder
# Arch Linux Rebuild Order Tool
A CLI tool to determine the rebuild order of provided package(s).
......
......@@ -78,7 +78,7 @@ fn write_dotfile(filename: String, graph: DiGraph<&str, u16>) -> Result<(), Box<
Ok(())
}
/// Run rebuilder, returning the rebuild order of provided package(s).
/// Run arch-rebuild-order, returning the rebuild order of provided package(s).
pub fn run(
pkgnames: Vec<String>,
dbpath: Option<String>,
......@@ -151,7 +151,7 @@ pub fn run(
}
}
// Reverse the rebuilder order as DfsPostOrder starts with the first pkgname and therefore
// Reverse the rebuild order as DfsPostOrder starts with the first pkgname and therefore
// shows it as last package
rebuild_order_packages.reverse();
......
use structopt::StructOpt;
#[derive(Debug, StructOpt)]
#[structopt(name = "rebuilder", about, author)]
#[structopt(name = "arch-rebuild-order", about, author)]
struct Args {
/// List of input packages
#[structopt(min_values = 1, required = true)]
......@@ -26,13 +26,13 @@ struct Args {
fn main() {
let args = Args::from_args();
match rebuilder::run(args.pkgnames, args.dbpath, args.repos, args.dotfile) {
match arch_rebuild_order::run(args.pkgnames, args.dbpath, args.repos, args.dotfile) {
Ok(output) => {
println!("{}", output);
std::process::exit(0);
}
Err(e) => {
eprintln!("Critical failure - rebuilder has stopped working");
eprintln!("Critical failure - arch-rebuild-order has stopped working");
eprintln!("Reason: {}", e);
std::process::exit(1);
}
......
......@@ -13,7 +13,7 @@ use fixtures::{
fn test_invalid_dbpath(invalid_dbpath: (Vec<String>, Option<String>)) {
let pkgnames = invalid_dbpath.0;
let dbpath = invalid_dbpath.1;
rebuilder::run(pkgnames, dbpath, vec![], None).unwrap();
arch_rebuild_order::run(pkgnames, dbpath, vec![], None).unwrap();
}
/// A package without any reverse dependencies should only print the given package
......@@ -21,7 +21,7 @@ fn test_invalid_dbpath(invalid_dbpath: (Vec<String>, Option<String>)) {
fn test_no_reverse_deps(no_reverse_deps: (Vec<Package>, Option<String>, Vec<String>, TempDir)) {
let packages = no_reverse_deps.0;
let res = rebuilder::run(
let res = arch_rebuild_order::run(
vec![packages[0].name.clone()],
no_reverse_deps.1,
no_reverse_deps.2,
......@@ -38,7 +38,7 @@ fn test_reverse_deps(reverse_deps: (Vec<String>, Option<String>, Vec<String>, Te
let pkgnames = reverse_deps.0;
let pkgname = &pkgnames[0];
let res = rebuilder::run(
let res = arch_rebuild_order::run(
vec![pkgname.to_string()],
reverse_deps.1,
reverse_deps.2,
......@@ -56,7 +56,7 @@ fn test_reverse_make_deps(reverse_make_deps: (Vec<Package>, Option<String>, Vec<
let packages = reverse_make_deps.0;
let pkgname = &packages[0].name;
let res = rebuilder::run(
let res = arch_rebuild_order::run(
vec![pkgname.to_string()],
reverse_make_deps.1,
reverse_make_deps.2,
......@@ -74,7 +74,7 @@ fn test_multiple_deps(multiple_deps: (Vec<Package>, Option<String>, Vec<String>,
let packages = multiple_deps.0;
let pkgname = &packages[0];
let res = rebuilder::run(
let res = arch_rebuild_order::run(
vec![pkgname.to_string()],
multiple_deps.1,
multiple_deps.2,
......@@ -92,7 +92,7 @@ fn test_dependency_depth(dependency_depth: (Vec<Package>, Option<String>, Vec<St
let packages = dependency_depth.0;
let pkgname = &packages[0];
let res = rebuilder::run(
let res = arch_rebuild_order::run(
vec![pkgname.to_string()],
dependency_depth.1,
dependency_depth.2,
......@@ -112,7 +112,7 @@ fn test_dependency_cycle(dependency_cycle: (Vec<Package>, Option<String>, Vec<St
let packages = dependency_cycle.0;
let pkgname = &packages[0];
let res = rebuilder::run(
let res = arch_rebuild_order::run(
vec![pkgname.to_string()],
dependency_cycle.1,
dependency_cycle.2,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment