- add back support for list of Entries in EntryWindow prompts in snack

(#248878)
- update license tag
This commit is contained in:
Miroslav Lichvar 2007-08-08 15:18:58 +00:00
parent d2b4bbeab9
commit 6e0ae11a97
2 changed files with 25 additions and 2 deletions

18
newt-0.52.7-snack.patch Normal file
View File

@ -0,0 +1,18 @@
Index: newt/snack.py
===================================================================
RCS file: /usr/local/CVS/newt/snack.py,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -r1.69 -r1.70
--- newt/snack.py 13 Jun 2007 17:17:53 -0000 1.69
+++ newt/snack.py 11 Jul 2007 17:00:28 -0000 1.70
@@ -826,7 +826,8 @@
for n in prompts:
if (type(n) == types.TupleType):
(n, e) = n
- e = Entry(entryWidth, e)
+ if (type(e) in types.StringTypes):
+ e = Entry(entryWidth, e)
else:
e = Entry(entryWidth)

View File

@ -3,7 +3,7 @@ Summary: A library for text mode user interfaces
Name: newt
Version: 0.52.7
Release: 2%{?dist}
License: LGPL
License: LGPLv2
Group: System Environment/Libraries
# The source for this package was pulled from upstream's vcs. Use the
# following commands to generate the tarball:
@ -13,6 +13,7 @@ Source: newt-%{version}.tar.gz
BuildRequires: python, python-devel, slang-devel
Provides: snack = %{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Patch1: newt-0.52.7-snack.patch
%package devel
Summary: Newt windowing toolkit development files
@ -59,6 +60,7 @@ providing a python API for creating text mode ionterfaces.
%prep
%setup -q
%patch1 -p1 -b .snack
%build
# gpm support seems to smash the stack w/ we use help in anaconda??
@ -104,7 +106,10 @@ rm -rf $RPM_BUILD_ROOT
%{python_sitearch}/*.py*
%changelog
* Mon Jun 25 2007 Miroslav Lichvar <mlichvar@redhat.com> - 0.52.7-2
* Wed Aug 08 2007 Miroslav Lichvar <mlichvar@redhat.com> - 0.52.7-2
- add back support for list of Entries in EntryWindow prompts in snack
(#248878)
- update license tag
- split python module to -python subpackage (Yanko Kaneti)
- fix summary