updated to BTreeMap to keep packages in order of entry

This commit is contained in:
Lilly Rosaline 2022-02-13 20:09:28 -06:00
parent 928ac68672
commit 3406d22209

View file

@ -1,8 +1,8 @@
use std::collections::HashMap;
use std::collections::{BTreeMap, HashMap};
pub fn get_package_install_list(args: Vec<String>) -> HashMap<String, bool>{
pub fn get_package_install_list(args: Vec<String>) -> BTreeMap<String, bool>{
let mut archive = false;
let mut packages: HashMap<String, bool> = HashMap::new();
let mut packages: BTreeMap<String, bool> = BTreeMap::new();
for arg in args {
match arg.as_str() {
"-r" | "--remote" => {