Skip to content

Commit

Permalink
Recursively create cache directory if it doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
hwittenborn committed Jun 6, 2022
1 parent 07b6ba7 commit 0d7da9d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.1.1] - 2022-06-06
### Fixed
- Recursively created cache directory if it doesn't exist.

## [0.1.0] - 2022-06-06
The beginning of the project! 🥳

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 = "mpr"
version = "0.1.0"
version = "0.1.1"
description = "The official command-line interface for the makedeb Package Repository"
edition = "2021"

Expand Down
4 changes: 2 additions & 2 deletions makedeb/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Maintainer: Hunter Wittenborn <[email protected]>
pkgname=mpr-cli
pkgver=0.1.0
pkgrel=2
pkgver=0.1.1
pkgrel=1
pkgdesc='The official command-line interface for the makedeb Package Repository'
arch=('any')
makedepends=('cargo' 'libssl-dev' 'pkg-config')
Expand Down
2 changes: 1 addition & 1 deletion src/mpr_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub fn new() -> Vec<MprCache> {
mpr_cache_dir.push("mpr-cli");

if !mpr_cache_dir.exists() {
match fs::create_dir(mpr_cache_dir.clone()) {
match fs::create_dir_all(mpr_cache_dir.clone()) {
Ok(()) => (),
Err(err) => {
message::error(&format!(
Expand Down

0 comments on commit 0d7da9d

Please sign in to comment.