forked from pool/rpmlint
Dirk Mueller
1d8d6856a8
* Avoid exception on inaccessible scripts * Print out the error content on UnicodeError to make flake8 happy * Fix flake8 warning about missing space around operators * Use compressions when checking for backup files * Account for arch specific code in /usr/share * Check for installed libtool wrapper files * Check for missing optional dependencies * Consider gnome help for doc files * Check for noarch package with files in lib64 * Verify if description is longer than summary * Explicitly tell users how to set URL * Ignore pytest_cache directory * confusing-invalid-spec-name * Ignore orig/rej leftovers after patching * Reenable Travis testing against Fedora Rawhide * Check all sections that should not use %buildroot in them * Put in default buildroot value used by Fedora/openSUSE * Stricter interpreter check * Use compileall to avoid %buildroot to be in pyc * Drop deprecated config file usage, 0.88 is pretty old anyway * Adjust Version to not print outdated Copyright * Rework Travis checks against latest Centos and Fedora releases * Fix exception handling * Fix various flake8-import-order test regressions * Blacklist newer pycodestyle warnings * Fix compatibility with file 5.33+ * Python 3.7.0b5 magic number is 3394 * Update TagsCheck.py * pyc related tests: DRY OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=648
37 lines
1.6 KiB
Diff
37 lines
1.6 KiB
Diff
Index: rpmlint-rpmlint-1.11/TagsCheck.py
|
|
===================================================================
|
|
--- rpmlint-rpmlint-1.11.orig/TagsCheck.py
|
|
+++ rpmlint-rpmlint-1.11/TagsCheck.py
|
|
@@ -466,16 +466,6 @@ so_dep_regex = re.compile(r'\.so(\.[0-9a
|
|
# we assume that no rpm packages existed before rpm itself existed...
|
|
oldest_changelog_timestamp = calendar.timegm(time.strptime("1995-01-01", "%Y-%m-%d"))
|
|
|
|
-private_so_paths = set()
|
|
-for path in ('%perl_archlib', '%perl_vendorarch', '%perl_sitearch',
|
|
- '%python_sitearch', '%python2_sitearch', '%python3_sitearch',
|
|
- '%ruby_sitearch', '%php_extdir'):
|
|
- epath = rpm.expandMacro(path)
|
|
- if epath and epath != path:
|
|
- private_so_paths.add(epath)
|
|
- private_so_paths.add(re.sub(r'/lib64(?=/|$)', '/lib', epath))
|
|
- private_so_paths.add(re.sub(r'/lib(?=/|$)', '/lib64', epath))
|
|
-
|
|
_enchant_checkers = {}
|
|
|
|
|
|
@@ -934,14 +924,6 @@ class TagsCheck(AbstractCheck.AbstractCh
|
|
res = Pkg.b2s(pkg[getattr(rpm, 'RPMTAG_%s' % tag.upper())])
|
|
self._unexpanded_macros(pkg, tag, res)
|
|
|
|
- for path in private_so_paths:
|
|
- for fname, pkgfile in pkg.files().items():
|
|
- if fname.startswith(path):
|
|
- for prov in pkgfile.provides:
|
|
- if so_dep_regex.search(prov[0]):
|
|
- printWarning(pkg, "private-shared-object-provides",
|
|
- fname, Pkg.formatRequire(*prov))
|
|
-
|
|
def check_description(self, pkg, lang, ignored_words):
|
|
description = pkg.langtag(rpm.RPMTAG_DESCRIPTION, lang)
|
|
if use_utf8:
|