From d3f83ae86c0ffb084b6280c66d734bedcb41cd32 Mon Sep 17 00:00:00 2001 From: Mircea Mihalea Date: Sun, 8 Dec 2019 14:39:37 +0400 Subject: [PATCH 1/2] Fix issue #1 Fix config directory not getting created automatically if not existent --- bitwarden_pyro/util/config.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bitwarden_pyro/util/config.py b/bitwarden_pyro/util/config.py index 98b1ad6..0aa1f47 100644 --- a/bitwarden_pyro/util/config.py +++ b/bitwarden_pyro/util/config.py @@ -172,10 +172,16 @@ def __flatten_config(self, config, parent_key='', sep='.'): def __copy_config(self, path): try: + self._logger.debug("Copying default config") + source = pkg_resources.resource_filename( 'bitwarden_pyro.resources', 'config' ) + dirname = os.path.dirname(path) + if not os.path.isdir(dirname): + os.makedirs(dirname) + copy(source, path) except IOError: raise ConfigException("Failed to copy default config") From 427b1eb1fa709537ebdf65c714e9b87404c41459 Mon Sep 17 00:00:00 2001 From: Mircea Mihalea Date: Sun, 8 Dec 2019 14:42:00 +0400 Subject: [PATCH 2/2] Increment version to 1.1.2 --- bitwarden_pyro/settings.py | 2 +- packaging/PKGBUILD | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bitwarden_pyro/settings.py b/bitwarden_pyro/settings.py index 21cffbe..ff46f76 100644 --- a/bitwarden_pyro/settings.py +++ b/bitwarden_pyro/settings.py @@ -1,2 +1,2 @@ -VERSION = "1.1.1" +VERSION = "1.1.2" NAME = "bwpyro" diff --git a/packaging/PKGBUILD b/packaging/PKGBUILD index 48b613a..b2cf307 100644 --- a/packaging/PKGBUILD +++ b/packaging/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer Mircea Mihalea pkgname=bitwarden-pyro-git -pkgver=v1.1.1 +pkgver=v1.1.2 pkgrel=1 pkgdesc="Bitwarden python interface built with Rofi" url="https://github.com/mihalea/bitwarden-pyro" @@ -18,7 +18,7 @@ license=('MIT') arch=('any') provides=('bwpyro') conflicts=('bwpyro') -source=("git+https://github.com/mihalea/${pkgname%-git}.git#tag=v1.1.1") +source=("git+https://github.com/mihalea/${pkgname%-git}.git#tag=v1.1.2") md5sums=('SKIP') pkgver() {