Internal restructuring of stx-integ
Create new directories:
ceph
config
config-files
filesystem
kernel
kernel/kernel-modules
ldap
logging
strorage-drivers
tools
utilities
virt
Retire directories:
connectivity
core
devtools
support
extended
Delete two packages:
tgt
irqbalance
Relocated packages:
base/
dhcp
initscripts
libevent
lighttpd
linuxptp
memcached
net-snmp
novnc
ntp
openssh
pam
procps
sanlock
shadow
sudo
systemd
util-linux
vim
watchdog
ceph/
python-cephclient
config/
facter
puppet-4.8.2
puppet-modules
filesystem/
e2fsprogs
nfs-utils
nfscheck
kernel/
kernel-std
kernel-rt
kernel/kernel-modules/
mlnx-ofa_kernel
ldap/
nss-pam-ldapd
openldap
logging/
syslog-ng
logrotate
networking/
lldpd
iproute
mellanox
python-ryu
mlx4-config
python/
python-2.7.5
python-django
python-gunicorn
python-setuptools
python-smartpm
python-voluptuous
security/
shim-signed
shim-unsigned
tboot
strorage-drivers/
python-3parclient
python-lefthandclient
virt/
cloud-init
libvirt
libvirt-python
qemu
tools/
storage-topology
vm-topology
utilities/
tis-extensions
namespace-utils
nova-utils
update-motd
Change-Id: I37ade764d873c701b35eac5881eb40412ba64a86
Story: 2002801
Task: 22687
Signed-off-by: Scott Little <scott.little@windriver.com>
This commit is contained in:
1
python/python-voluptuous/centos/build_srpm.data
Normal file
1
python/python-voluptuous/centos/build_srpm.data
Normal file
@@ -0,0 +1 @@
|
||||
TIS_PATCH_VER=1
|
||||
@@ -0,0 +1,44 @@
|
||||
From a64cf29a67df13212e173c4aa74fe9de538ea97d Mon Sep 17 00:00:00 2001
|
||||
From: Angie Wang <Angie.Wang@windriver.com>
|
||||
Date: Mon, 28 May 2018 20:18:19 -0400
|
||||
Subject: [PATCH 1/1] meta add NotIn validation
|
||||
|
||||
---
|
||||
SPECS/python-voluptuous.spec | 7 ++++++-
|
||||
1 file changed, 6 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/SPECS/python-voluptuous.spec b/SPECS/python-voluptuous.spec
|
||||
index 2b1217c..9f82511 100644
|
||||
--- a/SPECS/python-voluptuous.spec
|
||||
+++ b/SPECS/python-voluptuous.spec
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
Name: python-%{upname}
|
||||
Version: 0.8.9
|
||||
-Release: 1%{?dist}
|
||||
+Release: 1.el7%{?_tis_dist}.%{tis_patch_ver}
|
||||
Summary: A Python data validation library
|
||||
License: BSD
|
||||
Group: Development/Languages
|
||||
@@ -15,6 +15,10 @@ URL: http://github.com/alecthomas/voluptuous
|
||||
# Use the tarball from github instead
|
||||
#Source0: http://pypi.python.org/packages/source/v/voluptuous/%{upname}-%{version}.tar.gz
|
||||
Source0: http://github.com/alecthomas/voluptuous/archive/%{version}.tar.gz#/%{upname}-%{version}.tar.gz
|
||||
+
|
||||
+# WRS
|
||||
+Patch0001: 0001-add-NotIn-validation.patch
|
||||
+
|
||||
BuildRequires: python2-devel python-setuptools
|
||||
|
||||
BuildArch: noarch
|
||||
@@ -38,6 +42,7 @@ primarily intended for validating data coming into Python as JSON, YAML, etc.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{upname}-%{version}
|
||||
+%patch0001 -p1
|
||||
rm -rf %{upname}.egg-info
|
||||
|
||||
%if 0%{?with_python3}
|
||||
--
|
||||
1.8.3.1
|
||||
|
||||
1
python/python-voluptuous/centos/meta_patches/PATCH_ORDER
Normal file
1
python/python-voluptuous/centos/meta_patches/PATCH_ORDER
Normal file
@@ -0,0 +1 @@
|
||||
0001-meta-add-NotIn-validation.patch
|
||||
@@ -0,0 +1,47 @@
|
||||
From afc63cafd4388310f865fb0fba3165a228796049 Mon Sep 17 00:00:00 2001
|
||||
From: Angie Wang <Angie.Wang@windriver.com>
|
||||
Date: Mon, 28 May 2018 20:12:43 -0400
|
||||
Subject: [PATCH 1/1] add NotIn validation
|
||||
|
||||
---
|
||||
voluptuous.py | 24 ++++++++++++++++++++++++
|
||||
1 file changed, 24 insertions(+)
|
||||
|
||||
diff --git a/voluptuous.py b/voluptuous.py
|
||||
index 5b561b1..b4ed666 100644
|
||||
--- a/voluptuous.py
|
||||
+++ b/voluptuous.py
|
||||
@@ -1584,6 +1584,30 @@ def In(container, msg=None):
|
||||
return validator
|
||||
|
||||
|
||||
+class NotInInvalid(Invalid):
|
||||
+ pass
|
||||
+
|
||||
+
|
||||
+class NotIn(object):
|
||||
+ """Validate that a value is not in a collection."""
|
||||
+
|
||||
+ def __init__(self, container, msg=None):
|
||||
+ self.container = container
|
||||
+ self.msg = msg
|
||||
+
|
||||
+ def __call__(self, v):
|
||||
+ try:
|
||||
+ check = v in self.container
|
||||
+ except TypeError:
|
||||
+ check = True
|
||||
+ if check:
|
||||
+ raise NotInInvalid(self.msg or 'value is not allowed')
|
||||
+ return v
|
||||
+
|
||||
+ def __repr__(self):
|
||||
+ return 'NotIn(%s)' % (self.container,)
|
||||
+
|
||||
+
|
||||
def Lower(v):
|
||||
"""Transform a string to lower case.
|
||||
|
||||
--
|
||||
1.8.3.1
|
||||
|
||||
1
python/python-voluptuous/centos/srpm_path
Normal file
1
python/python-voluptuous/centos/srpm_path
Normal file
@@ -0,0 +1 @@
|
||||
mirror:Source/python-voluptuous-0.8.9-1.el7.src.rpm
|
||||
Reference in New Issue
Block a user