Ville Skyttä
627f8d9c31
Add utf-8 magic comments.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1506 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:31 +03:00
Ville Skyttä
3b5643abd5
Do not load/initialize checks more than once.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1495 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:31 +03:00
Ville Skyttä
06196c4da7
Remove the -p option, use something like "python -O -u -m cProfile -s cumulative rpmlint.py ..." for profiling instead.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1492 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:31 +03:00
Ville Skyttä
0ee0c639b5
Fix -a with rpm 4.6 ( https://bugzilla.redhat.com/480664 , Panu Matilainen).
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1490 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:31 +03:00
Ville Skyttä
c603750a1a
Trim trailing whitespace.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1478 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:31 +03:00
Ville Skyttä
b0b07a56f9
pylint whitespace cleanups.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1475 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:31 +03:00
Ville Skyttä
3c056fedf9
Improve non-package-related error message formatting.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1474 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:31 +03:00
Ville Skyttä
e1569d9f2b
Use tempfile.gettempdir() instead of hardcoding /tmp, Python >= 2.3 is now required.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1468 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:30 +03:00
Ville Skyttä
142a8289f0
Load all /etc/rpmlint/*config as config files.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1467 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:30 +03:00
Ville Skyttä
6e33fd421d
Drop defunct policy loading code and options ( #163 ).
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1464 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:30 +03:00
Ville Skyttä
682ce002a8
Fix enabling of UTF-8 checks for specfile-only checks in UTF-8 mode.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1445 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:30 +03:00
Ville Skyttä
b01c8bd793
Drop warnings-only exit status 65 ( #157 ).
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1438 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:30 +03:00
Ville Skyttä
298164c051
Add badness scoring support ( #70 , vast majority of work by dmueller at suse.de).
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1426 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:29 +03:00
Ville Skyttä
a2945acd5e
Always print stats.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1425 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:29 +03:00
Ville Skyttä
d67cda6bc6
Cosmetic cleanups.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1424 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:29 +03:00
Ville Skyttä
66a34c6568
Output basic statistics before exiting.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1423 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:29 +03:00
Ville Skyttä
fc94a6a0fb
Exit with non-zero status if errors/warnings printed ( #128 ).
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1422 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:29 +03:00
Ville Skyttä
2a4d9419d8
Output usage errors to stderr, improve messages.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1420 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:29 +03:00
Ville Skyttä
15c1835182
Minor -I output tweak.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1411 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:29 +03:00
Ville Skyttä
f6eed6aafb
Check spec files too when processing directories.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1367 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:28 +03:00
Ville Skyttä
4d1e5709b2
2007
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1360 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:28 +03:00
Ville Skyttä
592289e8ba
Add direct specfile checking, error line numbers ( #60 , alcapcom at gmail.com).
...
Also modify error output format for editor parseability (mostly useful for
specfile checks), and include package architectures in output.
NOTE: locally installed filters should be reviewed against the new output
format and ported to it if needed.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1349 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:28 +03:00
Ville Skyttä
7da69cd38f
Remove unused/deprecated loadFile().
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1342 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:27 +03:00
Ville Skyttä
def2cc1c9c
Only try to check rpm files when given a directory.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1283 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:26 +03:00
Ville Skyttä
69656f61c7
Don't run main() when importing rpmlint.py, makes eg. pychecker happier ( #48 ).
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1282 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:26 +03:00
Ville Skyttä
b0a5cb4068
Improve error messages, fix checking dirs containing packages.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1247 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:25 +03:00
Ville Skyttä
3410d23171
Fix error message output when loading a system config file fails.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1215 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:24 +03:00
Michael Scherer
37595759c4
- give error message about config file loading failure, and give the correct file that failed.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1214 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:24 +03:00
Michael Scherer
57744bcce1
- pychecker fix
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1213 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:24 +03:00
Ville Skyttä
807d9d346b
Check all matching installed packages, not only the first (for multiarch systems and/or multi-version packages).
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1192 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:24 +03:00
Ville Skyttä
5a19cd621e
Fix setting ExtractDir in config files.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1191 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:24 +03:00
Ville Skyttä
a9c8eca042
2006.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1190 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:24 +03:00
Ville Skyttä
9b0cca7b65
Use execfile() for loading conf files, fixes #20 .
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1189 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:24 +03:00
Michael Scherer
0a4ad37aef
add another configuration file for packager
...
/usr/share/rpmlint/config is used by packager, to set package wide policy, etc, and
should not be modified by users
/etc/rpmlint/config is used to set a configuration for a specific host, and should
be marked as %config(noreplace) in rpm
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1125 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:22 +03:00
Ville Skyttä
c79d60297b
Add indentation settings for vi* and *Emacs, use -tt, untabify.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1110 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:43:22 +03:00
Ville Skyttä
b17ba933d4
Fix indentation, untabify, trim trailing whitespace.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1049 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:42:46 +03:00
Ville Skyttä
22a3c3c8b3
Improve error message when invoked on non-rpm files.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1042 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:42:46 +03:00
Frédéric Lepied
0cc5c052cd
Mandriva
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@994 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:42:29 +03:00
Frédéric Lepied
62c5276a15
fix double import
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@931 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:39:11 +03:00
Frédéric Lepied
a59411178b
exit on C-c (Michael Scherer)
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@906 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:39:10 +03:00
Michael Scherer
732b053380
- fix -I, rpmlint didn't work f run without the option.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@876 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:39:10 +03:00
Michael Scherer
0908f932be
added option -I, to print description of the error passed on commandline
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@875 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:39:10 +03:00
Frédéric Lepied
b52079eb0f
more robust processing when scanning a directory (Michael Scherer)
...
force to have / in directory names to allow to have directory with
the same name as an installed package (Michael Scherer)
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@834 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:39:09 +03:00
Frédéric Lepied
eed549926e
fixed main loop for argument testing on files and directories
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@821 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:39:08 +03:00
Frédéric Lepied
259da5516d
updated directory support (Michael Scherer)
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@819 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:39:08 +03:00
Frédéric Lepied
76b276dbb4
Allow to pass a directory as an argument (Michael Scherer)
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@818 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:39:08 +03:00
Frédéric Lepied
7c61d82e9c
2003
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@779 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:39:07 +03:00
Frédéric Lepied
f270219c88
rpm 4.2 support (Ville Skyttä)
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@734 9bc8b190-ac0f-0410-8968-dc7d1f502856
2015-07-09 16:38:57 +03:00
Frédéric Lepied
c792df83b9
added a way to load an alternative config file.
...
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@717 9bc8b190-ac0f-0410-8968-dc7d1f502856
2003-01-16 22:30:27 +00:00
Frédéric Lepied
9ec1561203
added a --policy option.
...
the version is set at install time.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@643 9bc8b190-ac0f-0410-8968-dc7d1f502856
2002-04-24 20:04:25 +00:00