updated to BTreeMap to keep packages in order of entry
This commit is contained in:
parent
928ac68672
commit
3406d22209
1 changed files with 3 additions and 3 deletions
|
@ -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 archive = false;
|
||||||
let mut packages: HashMap<String, bool> = HashMap::new();
|
let mut packages: BTreeMap<String, bool> = BTreeMap::new();
|
||||||
for arg in args {
|
for arg in args {
|
||||||
match arg.as_str() {
|
match arg.as_str() {
|
||||||
"-r" | "--remote" => {
|
"-r" | "--remote" => {
|
||||||
|
|
Loading…
Reference in a new issue