Skip to content

Commit

Permalink
Release 0.9.8
Browse files Browse the repository at this point in the history
  • Loading branch information
hwittenborn committed Sep 26, 2022
1 parent ba80230 commit 5132bb8
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 9 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mist"
version = "0.9.7"
version = "0.9.8"
authors = ["Hunter Wittenborn <[email protected]"]
description = "The official command-line interface for the makedeb Package Repository"
edition = "2021"
Expand Down
6 changes: 4 additions & 2 deletions completions/mist.bash
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ _mist_get_pkglist() {
mapfile -t COMPREPLY < <(apt-cache --no-generate pkgnames "${@: -1}")
fi

if ([[ -f '/var/cache/mist/pkglist.gz' ]] && ! printf '%s\n' "${@}" "${words[@]}" | grep -q -- '--apt-only') || ! printf '%s\n' "${opts[@]}" | grep -q -- '--apt-only'; then
mapfile -O "${#COMPREPLY[@]}" -t COMPREPLY < <(gzip -cd '/var/cache/mist/pkglist.gz' | grep "^${@: -1}")
if ! printf '%s\n' "${@}" "${words[@]}" | grep -q -- '--apt-only' || ! printf '%s\n' "${opts[@]}" | grep -q -- '--apt-only'; then
if [[ -f '/var/cache/mist/pkglist.gz' ]]; then
mapfile -O "${#COMPREPLY[@]}" -t COMPREPLY < <(gzip -cd '/var/cache/mist/pkglist.gz' | grep "^${@: -1}")
fi
fi
}

Expand Down
2 changes: 1 addition & 1 deletion makedeb/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# `-H 'MPR-Package: yes'` to your `makedeb` call if you want Mist to be able to
# automatically update itself.
pkgname=mist
pkgver=0.9.7
pkgver=0.9.8
pkgrel=1
pkgdesc='The official command-line interface for the makedeb Package Repository'
arch=('any')
Expand Down
3 changes: 1 addition & 2 deletions src/install_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,7 @@ pub fn order_mpr_packages(cache: &Cache, pkglist: &Vec<&str>) -> Vec<Vec<String>
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
Expand Down
6 changes: 4 additions & 2 deletions src/style.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5132bb8

Please sign in to comment.