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ä
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ä
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ä
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ä
12c96838e6
Record file provides.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1770 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:38 +03:00
Ville Skyttä
0e6324ae13
Fix check_versioned_dep().
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1769 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:38 +03:00
Ville Skyttä
49a7de0eba
Rename pkgfile.deps to .requires, parse it to (name, flags, (e, v, r)).
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1767 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:38 +03:00
Ville Skyttä
007b95c4b9
Move dep token parsing to Pkg, add some tests.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1766 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:38 +03:00
Ville Skyttä
ac7151ea51
Store dependencies, provides etc as (name, flags, (epoch, version, release)) internally.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1764 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:38 +03:00
Ville Skyttä
1e13839ea1
Don't bother checking match iterator boolean values.
...
Fixes installed package globbing with rpm 4.8: http://rpm.org/ticket/153
No need to raise KeyError for no matches at this level either.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1748 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:37 +03:00
Ville Skyttä
8a514dd9aa
Wrap bunch of long lines, tune comments and info messages.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1732 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:37 +03:00
Ville Skyttä
4c395dbfbc
Treat all failures opening the (installed) 'rpm' package for finding default groups as non-fatal.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1717 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:37 +03:00
Ville Skyttä
75a56c5d24
Fix default groups lookup when the rpm package is not installed.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1688 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:36 +03:00
Ville Skyttä
f848345066
Use alternative Python 2/3 'print' compatibility hack; drop rlprint, rename rlwarn to warn.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1686 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:36 +03:00
Ville Skyttä
38097b4659
Avoid import loop introduced in previous change.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1669 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:35 +03:00
Ville Skyttä
a9890b21bc
Introduce Pkg.rlprint and Pkg.rlwarn print-like functions, use them instead
...
of direct writes to sys.std{out,err} (#181 ).
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1668 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:35 +03:00
Ville Skyttä
946de31d01
Add summary and description spell checking using enchant ( #166 , most of the work by Debarshi Ray).
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1649 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:35 +03:00
Ville Skyttä
16ed9c123b
Don't treat '[' without a following ']' and something in between as a glob in getInstalledPkgs().
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1643 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:35 +03:00
Ville Skyttä
9fcdaff95b
Try to identify and bypass magic info originating from inside compressed files for now, https://bugzilla.redhat.com/519694
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1641 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:35 +03:00
Ville Skyttä
09307c008d
Decompress lzma files with xz in is_utf8.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1635 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:35 +03:00
Ville Skyttä
515bfca35b
Match "foo%_isa" when checking base package dependencies on foo, https://bugzilla.redhat.com/513811
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1626 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:34 +03:00
Ville Skyttä
4a2b170c5e
Remove stale comments.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1607 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:34 +03:00
Ville Skyttä
376621d1d8
Borrow various utilities from yum's rpmUtils.miscutils.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1602 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:34 +03:00
Ville Skyttä
ba96d2299a
Improve legacy prereq tracking with new rpm versions.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1597 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:34 +03:00
Ville Skyttä
a2de404147
Add xz support, improve *page-not-compressed-with-* info messages.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1595 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:34 +03:00
Ville Skyttä
43ce3c7515
Code cleanups.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1593 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:34 +03:00
Ville Skyttä
7bbfd9bff6
Code cleanups.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1578 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:33 +03:00
Ville Skyttä
21a971d6b7
Be a bit stricter when normalizing link targets, do it earlier.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1576 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:33 +03:00
Ville Skyttä
b95c348696
Improve link target normalization in symlink checks.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1575 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:33 +03:00
Ville Skyttä
9845241475
Don't treat %verifyscript dependencies as 'pre' ones.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1567 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:33 +03:00
Ville Skyttä
3a77e5979e
Drop obsolete backwards compatibility cruft.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1566 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:33 +03:00
Ville Skyttä
b29ba4a9e6
Add %verifyscript support.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1565 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:33 +03:00
Ville Skyttä
17db280f54
Use file magic info from rpm header and amend it with python-magic, include magic info in PkgFile.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1559 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:33 +03:00
Ville Skyttä
92ab9a70e9
Fix pkgfile.path for files in uninstalled (extracted) binary packages.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1558 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:33 +03:00
Ville Skyttä
c71d869617
Ensure current_linenum is always defined in fake pkgs.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1555 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:33 +03:00
Ville Skyttä
5f0219f526
Improve temp dir creation and temp file/dir naming.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1550 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:33 +03:00
Ville Skyttä
aa46ff70f1
Drop support for rpm < 4.4.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1548 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:33 +03:00
Ville Skyttä
68731ec1c8
Represent files inside packages as PkgFile objects.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1543 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:32 +03:00
Ville Skyttä
709e363748
Always raise KeyError (instead of sometimes StopIteration) from InstalledPkg if not found by name.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1541 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:32 +03:00
Ville Skyttä
fd40ee7e10
Move file dependencies to central files dict in Pkg.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1539 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:32 +03:00
Ville Skyttä
8c030967e3
Unused variable, import cleanup.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1538 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:32 +03:00
Ville Skyttä
73805f063b
Add cross directory hard link check ( #171 , Lubomir Rintel)
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1536 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:32 +03:00
Ville Skyttä
a8fd2dd842
Comment/TODO update.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1535 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:32 +03:00
Ville Skyttä
243fb5f28a
Docstring update.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1529 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:32 +03:00
Michael Scherer
ce0bdaa86f
- fix python 2.6 deprecation warning
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1524 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:32 +03:00
Ville Skyttä
6387cde4a8
Dict access cleanups.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1520 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:32 +03:00
Ville Skyttä
49943888c0
Combine file langs into regular Pkg files list.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1519 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:32 +03:00
Ville Skyttä
d55c8ebb84
PEP 8, pylint, pychecker cleanups.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1517 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:32 +03:00