Accepting request 747413 from Application:ERP:GNUHealth:3.4

camera.diff

OBS-URL: https://build.opensuse.org/request/show/747413
OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/gnuhealth-client?expand=0&rev=26
This commit is contained in:
Axel Braun 2019-11-11 19:08:35 +00:00 committed by Git OBS Bridge
parent 7f41bf0716
commit 2c60955bce
6 changed files with 32 additions and 3 deletions

17
camera.diff Normal file
View File

@ -0,0 +1,17 @@
diff -U 3 -dHrN -- b/gnuhealth_camera/__init__.py a/gnuhealth_camera/__init__.py
--- b/gnuhealth_camera/__init__.py 2018-11-27 00:07:32.000000000 +0100
+++ a/gnuhealth_camera/__init__.py 2019-11-11 19:46:58.148898162 +0100
@@ -166,7 +166,12 @@
set_attachment(data, frame)
break
- if keypressed == ord('q'):
+ # Cleanup / Destroy window when q key is pressed or when closing
+ # the window via alt+f4
+ if (keypressed == ord('q')):
+ break
+
+ if (cv2.getWindowProperty('== GNU Health Camera ==', cv2.WND_PROP_VISIBLE) < 1):
break
if keypressed == ord('h'):

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Nov 11 18:56:37 UTC 2019 - Axel Braun <axel.braun@gmx.de>
- camera.diff added
plugins changed from *latest* to version 3.4.x
-------------------------------------------------------------------
Thu Jul 11 06:40:35 UTC 2019 - Axel Braun <axel.braun@gmx.de>

View File

@ -26,10 +26,11 @@ License: GPL-3.0-only
Group: Productivity/Office/Management
Url: http://health.gnu.org/
Source: https://files.pythonhosted.org/packages/source/g/%{name}/%{name}-%{version}.tar.gz
Source1: ftp://ftp.gnu.org/gnu/health/plugins/gnuhealth_plugin_camera-latest.tar.gz
Source2: ftp://ftp.gnu.org/gnu/health/plugins/gnuhealth_plugin_crypto-latest.tar.gz
Source3: ftp://ftp.gnu.org/gnu/health/plugins/gnuhealth_plugin_frl-latest.tar.gz
Source1: ftp://ftp.gnu.org/gnu/health/plugins/gnuhealth_plugin_camera-3.4.0.tar.gz
Source2: ftp://ftp.gnu.org/gnu/health/plugins/gnuhealth_plugin_crypto-3.4.1.tar.gz
Source3: ftp://ftp.gnu.org/gnu/health/plugins/gnuhealth_plugin_frl-3.4.1.tar.gz
Source4: %{name}.desktop
Patch0: camera.diff
BuildRequires: fdupes
BuildRequires: python-Babel
BuildRequires: python-Sphinx
@ -75,6 +76,8 @@ tar -xzvf %{SOURCE1}
tar -xzvf %{SOURCE2}
tar -xzvf %{SOURCE3}
%patch0 -p1
%build
:

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4012eed15bc9da865c553a2122cf2547a5e5e741f22c43f2044ef8a2f920b998
size 14516