Commit Graph

1718 Commits

Author SHA1 Message Date
Ville Skyttä 79a1702319 Don't emit spurious executable perm warnings for docs with shebangs.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1825 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:39 +03:00
Ville Skyttä dc63b6c94e Don't read "head" of files for in each test that needs to peek into them.
Do it only once instead.  istextfile() is now called peek().


git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1824 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:39 +03:00
Ville Skyttä e7994b031c Check source and patch file sizes and MD5 hashes against Content-Length and Content-MD5 from their URLs.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1823 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:39 +03:00
Ville Skyttä 803dcdb801 Return urllib info() from check_url() if available.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1822 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:39 +03:00
Ville Skyttä 048c02c964 Be smarter when deciding whether arguments are rpm files or installed packages.
Arguments that are existing files (not directories) but do not contain
slashes and do not end with .rpm, .spm or .spec are now treated as
installed packages.


git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1821 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:39 +03:00
Ville Skyttä 27544bda5b Make rpmlint executable again.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1820 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:39 +03:00
Ville Skyttä 115d640c8d Get rid of shell script wrapper to make prefixed executables easier to set up.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1819 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:39 +03:00
Ville Skyttä 7c0bf0656c Improve --checkdir documentation.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1818 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:39 +03:00
Ville Skyttä ab534b64c6 Use xz to compress tarball.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1817 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:39 +03:00
Ville Skyttä e3cdcf99d9 Fix traceback when stringifying epoch-only versions (Roman Rakus).
https://bugzilla.redhat.com/657593


git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1816 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:39 +03:00
Ville Skyttä 548e3c4c45 Fix TypeError when outputting incoherent-version-dependency-on messages (#192).
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1815 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:39 +03:00
Ville Skyttä ff8b91244b Allow info messages even if badness scoring is used (Ludwig Nussel).
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1814 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:39 +03:00
Ville Skyttä 5b31f7ebd0 Make file capabilities available in PkgFile (rpm >= 4.7.0, Ludwig Nussel).
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1813 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:39 +03:00
Ville Skyttä ba1ffcbb97 Release 1.0.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1811 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:39 +03:00
Ville Skyttä cdb4ce32a9 Add note about file capabilities to setuid-binary info message.
https://bugzilla.redhat.com/646455


git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1810 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:39 +03:00
Ville Skyttä d8f8899bfd Turn some comments into docstrings.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1809 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:39 +03:00
Ville Skyttä 6980047997 Add support for PEP 3147 dirs when finding Python sources (David Malcolm).
https://bugzilla.redhat.com/637956


git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1808 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:39 +03:00
Ville Skyttä 8a8197d974 Offer only long rpmdiff completion options.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1807 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:39 +03:00
Ville Skyttä 0c2c594c97 Add basic -c/--check completion.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1806 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:39 +03:00
Ville Skyttä a24fd66aa6 Document format of values for --check.
https://bugzilla.redhat.com/639823


git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1805 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:39 +03:00
Ville Skyttä 4bdc353920 Release 0.99.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1803 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:39 +03:00
Ville Skyttä f3e863691a Drop duplicate -mandoc arg to groff.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1802 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:39 +03:00
Ville Skyttä de156684bc Add Python 3.2 magic number handling.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1801 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:39 +03:00
Ville Skyttä 3ea60d3bc6 Add Python 2.7 magic number (https://bugzilla.redhat.com/623607, Nils Philippsen)
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1800 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:39 +03:00
Ville Skyttä 4652b130aa Choose built in config based on prefix used when invoked (Tom Callaway).
https://bugzilla.redhat.com/show_bug.cgi?id=537430#c8


git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1799 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:39 +03:00
Ville Skyttä 767c18e499 Use rpm.RPMTAG_HEADERI18NTABLE instead of assuming it's 100.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1798 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:39 +03:00
Ville Skyttä c2bfeaa1c3 Release 0.98.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1796 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:39 +03:00
Ville Skyttä c2da95d8ac Extend list of valid language country codes from the iso-codes project.
http://alioth.debian.org/projects/pkg-isocodes/
https://bugzilla.redhat.com/show_bug.cgi?id=599516


git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1795 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:39 +03:00
Ville Skyttä ea69aeea1a Fix self-obsoletion bug with Provides containing Epoch.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1794 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:39 +03:00
Ville Skyttä 8f1a4d02dc Don't stringify None Epoch to 'None' string in compareEVR().
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1793 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:39 +03:00
Ville Skyttä be2e601801 Sync rangeCompare() with yum 3.2.27.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1792 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:39 +03:00
Ville Skyttä b98daf3cfc Reduce some spell check noise.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1791 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:39 +03:00
Ville Skyttä ead37fb501 Fix handling of arguments containing spaces.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1790 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:39 +03:00
Ville Skyttä 8394038670 Revert accidental bit in previous commit.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1789 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:38 +03:00
Ville Skyttä ff606f1b6c Try to avoid messages about ./configure in comments.
https://bugzilla.redhat.com/599427


git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1788 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:38 +03:00
Ville Skyttä 669db10b6e Simplify code, remove misleading comment.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1787 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:38 +03:00
Ville Skyttä 3ff321527a Suppress spell check errors for words containing digits.
This is a workaround for enchant's digit tokenizing behavior:
http://github.com/rfk/pyenchant/issues/issue/3


git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1786 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:38 +03:00
Ville Skyttä 92f8dfe352 Bypass doc file check earlier if package has no doc files.
As a side effect, works around https://bugzilla.redhat.com/593553 with rpm
4.8.0 and gpg-pubkeys.


git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1785 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:38 +03:00
Ville Skyttä 57e3e700ca Release 0.97.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1783 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:38 +03:00
Ville Skyttä 4e26a285c3 Do man page warning check only in UTF-8 mode for now.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1782 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:38 +03:00
Ville Skyttä 4de2327c7b Avoid some false macro-in-comment positives.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1781 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:38 +03:00
Ville Skyttä 99fd423e27 Add manual page warning check, https://bugzilla.redhat.com/589432
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1780 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:38 +03:00
Ville Skyttä bc9e87409b Split "cat" command into catcmd().
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1779 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:38 +03:00
Ville Skyttä 6cf63bda81 Output no-ldconfig-symlink only for files starting with "lib" or "ld-".
ldconfig (as of glibc 2.11.90) itself handles only files starting with these
prefixes.  https://bugzilla.redhat.com/459452


git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1778 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:38 +03:00
Ville Skyttä 8c149605a5 Clean up after ourselves.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1777 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:38 +03:00
Ville Skyttä 4234ba7918 Release 0.96.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1775 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:38 +03:00
Ville Skyttä 150423ae13 Get rid of app-defaults-must-not-be-conffile check, it's covered by non-etc-or-var-file-marked-as-conffile.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1774 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:38 +03:00
Ville Skyttä 68220b339a Replace some trivial regexps with string matches.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1773 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:38 +03:00
Ville Skyttä c82eadebf6 Get rid of file-in-usr-marked-as-conffile check, it's covered by non-etc-or-var-file-marked-as-conffile.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1772 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:38 +03:00
Ville Skyttä 7dd815e46e Warn about shared object provides in private dirs, https://bugzilla.redhat.com/487974
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1771 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:38 +03:00