Compare commits
No commits in common. "c8" and "imports/c8s/python-simpleline-1.1.1-3.el8" have entirely different histories.
c8
...
imports/c8
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
|||||||
SOURCES/simpleline-1.1.3.tar.gz
|
SOURCES/simpleline-1.1.1.tar.gz
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
b30b36a3f92bacb770724932a1da98fadf8d88db SOURCES/simpleline-1.1.3.tar.gz
|
da06a48d5c777b9909d213e23e9bcd6422fb7b43 SOURCES/simpleline-1.1.1.tar.gz
|
||||||
|
|||||||
42
SOURCES/0001-Always-close-the-password-dialog.patch
Normal file
42
SOURCES/0001-Always-close-the-password-dialog.patch
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
From 8e0c75a0fbc4fc9496e1fcef0ce21fa8e28facc8 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Vendula Poncova <vponcova@redhat.com>
|
||||||
|
Date: Mon, 29 Jul 2019 18:28:18 +0200
|
||||||
|
Subject: [PATCH] Always close the password dialog
|
||||||
|
|
||||||
|
The password dialog should be closed even if no password is provided.
|
||||||
|
Otherwise, it is not possible to continue, because the UI is blocked.
|
||||||
|
|
||||||
|
Resolves: rhbz#2121914
|
||||||
|
---
|
||||||
|
simpleline/render/adv_widgets.py | 15 +++++++--------
|
||||||
|
1 file changed, 7 insertions(+), 8 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/simpleline/render/adv_widgets.py b/simpleline/render/adv_widgets.py
|
||||||
|
index 781d2c5..58376ab 100644
|
||||||
|
--- a/simpleline/render/adv_widgets.py
|
||||||
|
+++ b/simpleline/render/adv_widgets.py
|
||||||
|
@@ -87,14 +87,13 @@ class PasswordDialog(UIScreen):
|
||||||
|
return None
|
||||||
|
|
||||||
|
self._password = handler.value
|
||||||
|
- if not self._password:
|
||||||
|
- return None
|
||||||
|
- else:
|
||||||
|
- # this may seem innocuous, but it's really a giant hack; we should
|
||||||
|
- # not be calling close() from prompt(), but the input handling code
|
||||||
|
- # in the TUI is such that without this very simple workaround, we
|
||||||
|
- # would be forever pelting users with a prompt to enter their pw
|
||||||
|
- self.close()
|
||||||
|
+
|
||||||
|
+ # this may seem innocuous, but it's really a giant hack; we should
|
||||||
|
+ # not be calling close() from prompt(), but the input handling code
|
||||||
|
+ # in the TUI is such that without this very simple workaround, we
|
||||||
|
+ # would be forever pelting users with a prompt to enter their pw
|
||||||
|
+ self.close()
|
||||||
|
+ return None
|
||||||
|
|
||||||
|
@property
|
||||||
|
def answer(self):
|
||||||
|
--
|
||||||
|
2.37.1
|
||||||
|
|
||||||
@ -3,13 +3,15 @@
|
|||||||
Name: python-%{srcname}
|
Name: python-%{srcname}
|
||||||
Summary: A Python library for creating text UI
|
Summary: A Python library for creating text UI
|
||||||
Url: https://github.com/rhinstaller/python-%{srcname}
|
Url: https://github.com/rhinstaller/python-%{srcname}
|
||||||
Version: 1.1.3
|
Version: 1.1.1
|
||||||
Release: 1%{?dist}
|
Release: 3%{?dist}
|
||||||
# This tarball was created from upstream git:
|
# This tarball was created from upstream git:
|
||||||
# git clone https://github.com/rhinstaller/python-simpleline
|
# git clone https://github.com/rhinstaller/python-simpleline
|
||||||
# cd python-simpleline && make archive
|
# cd python-simpleline && make archive
|
||||||
Source0: https://github.com/rhinstaller/python-%{srcname}/archive/%{srcname}-%{version}.tar.gz
|
Source0: https://github.com/rhinstaller/python-%{srcname}/archive/%{srcname}-%{version}.tar.gz
|
||||||
|
|
||||||
|
Patch0: 0001-Always-close-the-password-dialog.patch
|
||||||
|
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
@ -41,6 +43,7 @@ Printed lines are never rewritten!
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{srcname}-%{version}
|
%setup -q -n %{srcname}-%{version}
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%make_build
|
%make_build
|
||||||
@ -59,17 +62,9 @@ make test
|
|||||||
%{python3_sitelib}/*
|
%{python3_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Oct 27 2022 Jiri Konecny <jkonecny@redhat.com> - 1.1.3-1
|
* Thu Sep 1 2022 Radek Vykydal <rvykydal@redhat.com> - 1.1.1-3
|
||||||
- Add tests for UIScreen wide disabling of concurrency check (jkonecny)
|
- Always close the password dialog
|
||||||
- Abstract registering signal handler in the InputHandler constructor (jkonecny)
|
Resolves: rhbz#2121914
|
||||||
- Allow to disable concurrency check for all UIScreen inputs (jkonecny)
|
|
||||||
- Enable execution of the tests on GitHub actions (jkonecny)
|
|
||||||
- Add Makefile target for container tests execution (jkonecny)
|
|
||||||
- Remove pocketlint from the build requires (jkonecny)
|
|
||||||
|
|
||||||
* Thu Sep 22 2022 Jiri Konecny <jkonecny@redhat.com> - 1.1.2-1
|
|
||||||
- Always close the password dialog (vponcova)
|
|
||||||
Resolves: rhbz#2125272
|
|
||||||
|
|
||||||
* Tue Aug 11 2020 Jiri Konecny <jkonecny@redhat.com> - 1.1.1-2
|
* Tue Aug 11 2020 Jiri Konecny <jkonecny@redhat.com> - 1.1.1-2
|
||||||
- Fix file extension of gating.yaml
|
- Fix file extension of gating.yaml
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user