SHA256
1
0
forked from pool/rpmlint

- check for versioned dependency on python(abi) (bnc#659068)

OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=59
This commit is contained in:
Dirk Mueller 2011-08-20 00:20:26 +00:00 committed by Git OBS Bridge
parent 63c279c07c
commit c7e3b83334
3 changed files with 23 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Aug 20 02:19:29 CEST 2011 - dmueller@suse.de
- check for versioned dependency on python(abi) (bnc#659068)
-------------------------------------------------------------------
Fri Aug 19 18:36:04 CEST 2011 - dmueller@suse.de

View File

@ -124,6 +124,7 @@ Patch85: suse-changelog.patch
Patch86: suse-rclink-check.diff
# accepted upstream
Patch88: suse-speccheck-utf8.diff
Patch89: suse-python-abi-check.diff
%py_requires
%description
@ -202,6 +203,7 @@ Authors:
%patch86
#patch87 -p1
%patch88
%patch89
cp -p %{SOURCE1} .
cp -p %{SOURCE2} .
cp -p %{SOURCE3} .

View File

@ -0,0 +1,16 @@
--- FilesCheck.py
+++ FilesCheck.py
@@ -664,8 +664,11 @@
if res and not (pkg.check_versioned_dep('python-base',
res.group(1)) or
pkg.check_versioned_dep('python',
- res.group(1))):
- printError(pkg, 'no-dependency-on', 'python-base',
+ res.group(1)) or
+ pkg.check_versioned_dep('python(abi)',
+ res.group(1)) or
+ ):
+ printError(pkg, 'no-dependency-on', 'python(abi)',
res.group(1))
python_dep_error = True