From 5132bb8a4a34f0dc16962e3d616324fe3882c83b Mon Sep 17 00:00:00 2001 From: Hunter Wittenborn Date: Mon, 26 Sep 2022 03:08:31 -0500 Subject: [PATCH] Release 0.9.8 --- CHANGELOG.md | 6 ++++++ Cargo.lock | 2 +- Cargo.toml | 2 +- completions/mist.bash | 6 ++++-- makedeb/PKGBUILD | 2 +- src/install_util.rs | 3 +-- src/style.rs | 6 ++++-- 7 files changed, 18 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 832b962..3ca4930 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +## [0.9.8] - 2022-09-26 +### Fixed +- Fix panics when using the `-i` flag with `mist list`. +- Fix panics when installing MPR packages. +- Fix `/var/cache/mist/pkglist.gz` being read in completions even when it doesn't exist. + ## [0.9.7] - 2022-09-26 ### Fixed - Ensure Mist's cache directory in `${HOME}` is owned by the current user when Mist has to create it. diff --git a/Cargo.lock b/Cargo.lock index b1e9977..bc06a7f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -863,7 +863,7 @@ dependencies = [ [[package]] name = "mist" -version = "0.9.7" +version = "0.9.8" dependencies = [ "bat", "chrono", diff --git a/Cargo.toml b/Cargo.toml index e3af4e7..a23d605 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mist" -version = "0.9.7" +version = "0.9.8" authors = ["Hunter Wittenborn ) -> Vec for pkg in new_cache.get_changes(false) { let mut invalid_change: Option<&str> = None; let mpr_pkg_change = { - if pkglist.contains(&pkg.name().as_str()) - && let Ok(string) = fs::read_to_string(pkg.name() + "/DEBIAN/control") + if let Ok(string) = fs::read_to_string(pkg.name() + "/DEBIAN/control") && let Ok(tagsection) = TagSection::new(&string) && tagsection.get("Version").unwrap() == &pkg.candidate().unwrap().version() { true diff --git a/src/style.rs b/src/style.rs index 1ad8456..414be86 100644 --- a/src/style.rs +++ b/src/style.rs @@ -177,10 +177,12 @@ pub fn generate_pkginfo_entries( // Installed only. if installed_only - && cache.get_apt_pkg(pkgname).is_some() - && !cache.apt_cache().get(pkgname).unwrap().is_installed() + && let Some(pkg) = cache.apt_cache().get(pkgname) + && !pkg.is_installed() { continue; + } else if cache.apt_cache().get(pkgname).is_none() { + continue; } // Package be passed all the tests bro. We's be adding it to the vector now.