Skip to content

Commit

Permalink
Remove some debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
aueam committed Aug 7, 2024
1 parent 449c6cf commit e690f79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 32 deletions.
6 changes: 1 addition & 5 deletions oi-pkg-checker-core/src/packages/cycles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,9 @@ impl Components {
let mut cycles: Vec<Vec<(FMRI, EdgeType)>> = Vec::new();
let mut visited: Vec<FMRI> = Vec::new();

let a = self.packages.len();

for (i, p) in self.packages.iter().enumerate() {
for p in &self.packages {
let package = get!(p).clone();

println!("{}/{}", i, a);

if visited.contains(package.get_fmri()) {
continue;
}
Expand Down
28 changes: 1 addition & 27 deletions oi-pkg-checker/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ use oi_pkg_checker_core::{
},
report,
};
use oi_pkg_checker_core::packages::cycles::format_cycle;
use oi_pkg_checker_core::problems::report_problem;

use crate::{
Expand All @@ -41,32 +40,7 @@ fn main() {
if let Some(subcommand) = Args::parse().command {
match subcommand {
Commands::PrintProblems => {
let components = Components::deserialize(data_path).unwrap();
report(&components.problems);

// use oi_pkg_checker_core::packages::cycles::EdgeType::*;
// let a = components.check_cycles(&[
// RuntimeRequire,
// RuntimeRequireAny,
// RuntimeConditionalFmri,
// Build,
// SystemBuild,
// Test,
// SystemTest,
// ]);
//
// let mut h = true;
// for cycle in &a {
// if h {
// warn!("{}", format_cycle(cycle));
// h = false;
// } else {
// error!("{}", format_cycle(cycle));
// h = true;
// }
// }
//
// println!("{:?}", a.len());
report(&Components::deserialize(data_path).unwrap().problems)
}
Commands::CheckFMRI {
fmri,
Expand Down

0 comments on commit e690f79

Please sign in to comment.