Compare commits
No commits in common. "imports/c10s/python3.12-PyMySQL-1.1.0-3.el10" and "c8-beta" have entirely different histories.
imports/c1
...
c8-beta
@ -1 +0,0 @@
|
|||||||
1
|
|
17
.gitignore
vendored
17
.gitignore
vendored
@ -1,16 +1 @@
|
|||||||
/PyMySQL-0.6.6.tar.gz
|
SOURCES/PyMySQL-1.1.0.tar.gz
|
||||||
/PyMySQL-0.6.7.tar.gz
|
|
||||||
/PyMySQL-0.7.9.tar.gz
|
|
||||||
/PyMySQL-0.7.10.tar.gz
|
|
||||||
/PyMySQL-0.7.11.tar.gz
|
|
||||||
/PyMySQL-0.8.0.tar.gz
|
|
||||||
/PyMySQL-0.8.1.tar.gz
|
|
||||||
/PyMySQL-0.9.0.tar.gz
|
|
||||||
/PyMySQL-0.9.1.tar.gz
|
|
||||||
/PyMySQL-0.9.2.tar.gz
|
|
||||||
/PyMySQL-0.9.3.tar.gz
|
|
||||||
/PyMySQL-0.10.0.tar.gz
|
|
||||||
/PyMySQL-0.10.1.tar.gz
|
|
||||||
/PyMySQL-1.0.2.tar.gz
|
|
||||||
/PyMySQL-1.0.3.tar.gz
|
|
||||||
/PyMySQL-1.1.0.tar.gz
|
|
||||||
|
1
.python3.12-PyMySQL.metadata
Normal file
1
.python3.12-PyMySQL.metadata
Normal file
@ -0,0 +1 @@
|
|||||||
|
6d1caef3b6f1b699816a578a1033d98a436627a9 SOURCES/PyMySQL-1.1.0.tar.gz
|
@ -1,17 +0,0 @@
|
|||||||
diff --git a/pymysql/converters.py b/pymysql/converters.py
|
|
||||||
index 1adac75..dbf97ca 100644
|
|
||||||
--- a/pymysql/converters.py
|
|
||||||
+++ b/pymysql/converters.py
|
|
||||||
@@ -27,11 +27,7 @@ def escape_item(val, charset, mapping=None):
|
|
||||||
|
|
||||||
|
|
||||||
def escape_dict(val, charset, mapping=None):
|
|
||||||
- n = {}
|
|
||||||
- for k, v in val.items():
|
|
||||||
- quoted = escape_item(v, charset, mapping)
|
|
||||||
- n[k] = quoted
|
|
||||||
- return n
|
|
||||||
+ raise TypeError("dict can not be used as parameter")
|
|
||||||
|
|
||||||
|
|
||||||
def escape_sequence(val, charset, mapping=None):
|
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
Name: python%{python3_pkgversion}-%{pypi_name}
|
Name: python%{python3_pkgversion}-%{pypi_name}
|
||||||
Version: 1.1.0
|
Version: 1.1.0
|
||||||
Release: 3%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Pure-Python MySQL client library
|
Summary: Pure-Python MySQL client library
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
@ -13,11 +13,6 @@ URL: https://pypi.python.org/pypi/%{pypi_name}/
|
|||||||
Source0: %pypi_source
|
Source0: %pypi_source
|
||||||
Source1: setup.py
|
Source1: setup.py
|
||||||
|
|
||||||
# Security fix for CVE-2024-36039: SQL injection if used with untrusted JSON input
|
|
||||||
# Resolved upstream: https://github.com/PyMySQL/PyMySQL/commit/521e40050cb386a499f68f483fefd144c493053c
|
|
||||||
# Tracking bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2282821
|
|
||||||
Patch0: CVE-2024-36039.patch
|
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: python%{python3_pkgversion}-devel
|
BuildRequires: python%{python3_pkgversion}-devel
|
||||||
@ -40,7 +35,7 @@ and Jython.
|
|||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{pypi_name}-%{version} -p1
|
%setup -qn %{pypi_name}-%{version}
|
||||||
rm -rf %{pypi_name}.egg-info
|
rm -rf %{pypi_name}.egg-info
|
||||||
# Remove tests files so they are not installed globally.
|
# Remove tests files so they are not installed globally.
|
||||||
rm -rf tests
|
rm -rf tests
|
||||||
@ -67,10 +62,6 @@ cp %{SOURCE1} .
|
|||||||
%{python3_sitelib}/pymysql/
|
%{python3_sitelib}/pymysql/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Fri May 31 2024 Charalampos Stratakis <cstratak@redhat.com> - 1.1.0-3
|
|
||||||
- Security fix for CVE-2024-36039
|
|
||||||
Resolves: RHEL-38371
|
|
||||||
|
|
||||||
* Tue Jan 23 2024 Miro Hrončok <mhroncok@redhat.com> - 1.1.0-2
|
* Tue Jan 23 2024 Miro Hrončok <mhroncok@redhat.com> - 1.1.0-2
|
||||||
- Rebuilt for timestamp .pyc invalidation mode
|
- Rebuilt for timestamp .pyc invalidation mode
|
||||||
|
|
@ -1,7 +0,0 @@
|
|||||||
--- !Policy
|
|
||||||
|
|
||||||
product_versions:
|
|
||||||
- rhel-9
|
|
||||||
decision_context: osci_compose_gate
|
|
||||||
rules:
|
|
||||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
|
8
plan.fmf
8
plan.fmf
@ -1,8 +0,0 @@
|
|||||||
execute:
|
|
||||||
how: tmt
|
|
||||||
discover:
|
|
||||||
- how: shell
|
|
||||||
tests:
|
|
||||||
- name: simple import
|
|
||||||
test: python3.12 -c 'import pymysql'
|
|
||||||
- how: fmf
|
|
1
sources
1
sources
@ -1 +0,0 @@
|
|||||||
SHA512 (PyMySQL-1.1.0.tar.gz) = 51dddc92e766183ab5d93717121d853415561dc81abc7ec8299a73610cae5bc22b6070006d6ea24405ab31bc1ea68be61466a3477c0f84d47435f78ffc60d31e
|
|
@ -1,8 +0,0 @@
|
|||||||
require:
|
|
||||||
- mariadb-server
|
|
||||||
- python3.12-PyMySQL
|
|
||||||
|
|
||||||
test: |
|
|
||||||
systemctl start mariadb &&
|
|
||||||
python3.12 smoke_test.py &&
|
|
||||||
systemctl stop mariadb
|
|
@ -1,12 +0,0 @@
|
|||||||
#!/usr/bin/python3
|
|
||||||
# Modified from
|
|
||||||
# https://github.com/PyMySQL/PyMySQL/blob/v1.0.2/example.py
|
|
||||||
|
|
||||||
import pymysql
|
|
||||||
connection = pymysql.connect(unix_socket="/var/lib/mysql/mysql.sock", db="mysql")
|
|
||||||
cursor = connection.cursor()
|
|
||||||
cursor.execute("SELECT Host,User FROM user")
|
|
||||||
print(cursor.description)
|
|
||||||
|
|
||||||
cursor.close()
|
|
||||||
connection.close()
|
|
Loading…
Reference in New Issue
Block a user