Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rikonaka committed Jun 18, 2023
1 parent aa5e3db commit f2cd289
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "aoit"
version = "0.1.0"
version = "0.1.1"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
6 changes: 6 additions & 0 deletions src/pack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ pub fn pack_deb(package_name: &str) {
let mut fake_tree: Vec<HashMap<String, String>> = Vec::new();

let depends_vec = resolve_depends(package_name).unwrap();
if depends_vec.len() == 0 {
println!("The [{}] package does not exist", package_name);
utils::remove_dir(target_dir);
return;
}

let package_full_name = download_depends(package_name, &target_dir).unwrap();
// println!("{}", package_full_name);
let mut hm: HashMap<String, String> = HashMap::new();
Expand Down

0 comments on commit f2cd289

Please sign in to comment.