Commit Graph

1920 Commits

Author SHA1 Message Date
Ville Skyttä 802e97569f Warn about one line scriptlet commands only if the interpreter is a shell.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1880 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:41 +03:00
Ville Skyttä 4054c21114 Don't emit use-tmp-in-* for commented out /tmp in scriptlets.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1879 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:41 +03:00
Ville Skyttä 64d9e2ac8b Comment spelling fix.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1878 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:41 +03:00
Ville Skyttä 57ff789365 Teach rpmdiff about pretrans and posttrans.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1877 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:41 +03:00
Ville Skyttä ba2ea1bc44 Drop some throwaway code for packages with <> 1 init script.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1876 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:41 +03:00
Ville Skyttä 4b9fb3d6e7 Add special init script naming treatment for for *-sysvinit subpackages.
https://bugzilla.redhat.com/723460


git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1875 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:41 +03:00
Ville Skyttä fad504ea46 Release 1.3.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1873 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:41 +03:00
Ville Skyttä e4320aa19c Warn about INSTALL files included in docs.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1872 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:41 +03:00
Ville Skyttä 3d21acfe5c Drop unnecessary global statements.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1871 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:41 +03:00
Ville Skyttä 0bf6f846fe Add --rawout option (Ludwig Nussel).
Allows to specify a file that gets the unfiltered result. Useful to
not bother the developer with unimportant stuff but still retain a way
for distro maintainers to evaluate all results.


git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1870 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:41 +03:00
Ville Skyttä 0cb047c0d3 Clarify that python 3 is not yet supported.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1869 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:41 +03:00
Ville Skyttä 42cc3529d4 Add UseVarLockSubsys option for forbidding use of /var/lock/subsys (Ludwig Nussel).
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1868 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:40 +03:00
Ville Skyttä ce1fd80cdb Recognize patches applied via some common pipe usages.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1867 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:40 +03:00
Ville Skyttä bf4db12b26 Add info message for non-empty-*.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1866 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:40 +03:00
Ville Skyttä 7bb59f4a5a Check for position independent executables (based on patch by Ludwig Nussel).
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1865 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:40 +03:00
Ville Skyttä 0e64c0b826 Do executable checks for PIEs too.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1864 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:40 +03:00
Ville Skyttä 595baf2980 Warn about non-ghost files in /var/run and /var/lock (based on patch from Ludwig Nussel).
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1863 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:40 +03:00
Ville Skyttä 944348d19d Fix setting message type for reasons with badness threshold defined (Ludwig Nussel).
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1862 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:40 +03:00
Ville Skyttä a466fa6549 Use "declare -F" instead of "type" to check if a bash function exists.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1861 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:40 +03:00
Ville Skyttä 00c0eb0461 Release 1.2.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1859 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:40 +03:00
Ville Skyttä ecd7ae7999 Avoid completing on installed packages for some more cases that look like paths.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1858 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:40 +03:00
Ville Skyttä 557202a4c4 Add *.spm to completed file extensions.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1857 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:40 +03:00
Ville Skyttä 408c67f8a9 Add -I/--explain argument completion.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1856 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:40 +03:00
Ville Skyttä ba7a139295 Allow -I/--explain to be specified multiple times.
Specifying comma separated message ids is deprecated but still
supported for now for backwards compatibility.


git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1855 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:40 +03:00
Ville Skyttä 8d9f5e29ce Add --explain as alias for -I.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1854 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:40 +03:00
Ville Skyttä 5838c4e088 Regenerate ISO codes list with iso-codes 3.25.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1853 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:40 +03:00
Ville Skyttä d060ac0bcc Downgrade files-attr-not-set to a warning, improve its description.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1852 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:40 +03:00
Ville Skyttä b1dc5fc179 Run c++filt only once for all undefined non-weak symbols in a file.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1851 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:40 +03:00
Ville Skyttä fe8dd39588 Run undefined non-weak symbol names through c++filt (Richard Shaw).
https://bugzilla.redhat.com/show_bug.cgi?id=696749


git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1850 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:40 +03:00
Ville Skyttä cc236d40f5 Dereference symlinks for python bytecode mtime check.
https://bugzilla.redhat.com/694090


git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1849 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:40 +03:00
Ville Skyttä 871ce54b81 Sort imports.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1848 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:40 +03:00
Ville Skyttä 74f897ae4f Add Pkg.readfile() for dereferencing PkgFile symlinks.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1847 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:40 +03:00
Ville Skyttä 6faf113f7b Update FSF address.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1846 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:40 +03:00
Ville Skyttä 2d6a646328 Don't overwrite already existing details (Ludwig Nussel).
This allows the distro config to provide alternative descriptions and
distro specific explanations without having to patch checks.


git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1845 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:40 +03:00
Ville Skyttä 897e2d875a Implement is_utf8() without iconv.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1844 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:40 +03:00
Ville Skyttä 3516431596 Remove unused import.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1843 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:40 +03:00
Ville Skyttä 2247749be7 Check outdated or misspelled FSF addresses in text files.
https://bugzilla.redhat.com/637712


git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1842 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:40 +03:00
Ville Skyttä fd3c8b9faf Make man warning category configurable.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1841 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:40 +03:00
Ville Skyttä 1048b70d33 Spelling fix.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1840 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:40 +03:00
Ville Skyttä ebf2a3f9a6 Delete trailing whitespace.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1839 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:40 +03:00
Ville Skyttä 968097425a Regenerate ISO codes list with isocodes 3.20.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1838 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:40 +03:00
Ville Skyttä 7ca08074e2 Don't try to do python bytecode checks for unreadable files (#201).
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1837 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:40 +03:00
Ville Skyttä 40267d21ce Don't try to check Content-Length and Content-MD5 for invalid source URLs.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1836 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:40 +03:00
Ville Skyttä c1693659f4 Check for private shared object provides in both lib and lib64 subdirs.
https://bugzilla.redhat.com/675360


git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1835 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:40 +03:00
Ville Skyttä ece534c9da Release 1.1.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1833 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:40 +03:00
Ville Skyttä 06baa62ac9 Don't crash if a file cannot be opened when trying to peek into it.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1832 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:40 +03:00
Ville Skyttä 39f02d11b2 Update expected Python 3.2 bytecode magic value to 3180.
https://bugzilla.redhat.com/672352


git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1831 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:40 +03:00
Ville Skyttä 8d1ad64660 Improve no-description-tag info message.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1830 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:39 +03:00
Ville Skyttä ca8781bcdc Improve changelog related info messages.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1829 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:39 +03:00
Ville Skyttä 8ab38cd18f Treat 'Unspecified' as a valid Group the same way as 'Development/Debug'.
rpmbuild >= 4.6.0 adds it automatically if not specified in specfiles.


git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1828 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:39 +03:00