SHA256
1
0
forked from pool/rpmlint

- update suse-obsolete-version check (bsc#743981)

OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=417
This commit is contained in:
Dirk Mueller 2017-01-02 14:29:36 +00:00 committed by Git OBS Bridge
parent 65ff141179
commit 3cf7aeba7b
4 changed files with 9 additions and 4 deletions

View File

@ -1,7 +1,7 @@
#
# spec file for package rpmlint-tests
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jan 2 14:27:52 UTC 2017 - dmueller@suse.com
- update suse-obsolete-version check (bsc#743981)
-------------------------------------------------------------------
Mon Dec 5 10:33:21 UTC 2016 - krahmer@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package rpmlint
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed

View File

@ -24,9 +24,9 @@ index b69bead..2e3ba56 100644
printWarning(pkg, 'hardcoded-prefix-tag', res.group(1))
+ res = suse_version_regex.search(line)
+ if res and int(res.group(1)) > 0 and int(res.group(1)) < 1210:
+ if res and int(res.group(1)) > 0 and int(res.group(1)) < 1315:
+ printWarning(pkg, "obsolete-suse-version-check", res.group(1))
+ elif res and int(res.group(1)) > 1310:
+ elif res and int(res.group(1)) > 1330:
+ printError(pkg, "invalid-suse-version-check", res.group(1))
+
res = prereq_regex.search(line)