From 64383227b0a6f93225bc217bdfd635bca86cbe87 Mon Sep 17 00:00:00 2001 From: Andrew Hamilton Date: Mon, 4 Jun 2018 10:25:39 +1000 Subject: [PATCH] tools: Added rpm for rpm package archives. --- README.md | 3 ++- vigil/tools.toml | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 11be204..cc1af96 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ then to run: ### Tools -Extensions(88) | Tools(56) +Extensions(89) | Tools(57) ---------- | ----- .* | [contents](http://pygments.org/) • metadata • [git_blame](https://git-scm.com/docs/git-blame) • [git_log](https://git-scm.com/docs/git-log) .py | [python_syntax](https://en.wikipedia.org/wiki/Python_syntax_and_semantics) • [python_unittests](https://docs.python.org/3/library/unittest.html) • [pydoc](https://docs.python.org/3/library/pydoc.html) • [mypy](http://www.mypy-lang.org/) • [python_coverage](http://nedbatchelder.com/code/coverage/) • [pycodestyle](https://pypi.python.org/pypi/pycodestyle) • [pydocstyle](http://pydocstyle.readthedocs.org/) • [pyflakes](https://launchpad.net/pyflakes) • [pylint](http://www.pylint.org/) • [python_gut](https://github.com/ahamilton/vigil/blob/master/gut.py) • [python_modulefinder](https://docs.python.org/3/library/modulefinder.html) • [dis](https://docs.python.org/3/library/dis.html) • [python_mccabe](https://github.com/flintwork/mccabe) • [bandit](https://wiki.openstack.org/wiki/Security/Projects/Bandit) @@ -43,6 +43,7 @@ Extensions(88) | Tools(56) .7z | [7z](https://en.wikipedia.org/wiki/7z) .xz | [unxz](http://tukaani.org/xz/) .deb | [dpkg_contents](https://wiki.debian.org/Teams/Dpkg) • [dpkg_info](https://wiki.debian.org/Teams/Dpkg) +.rpm | [rpm](http://rpm.org/) .a | [ar](https://en.wikipedia.org/wiki/Ar_(Unix)) • [nm](https://linux.die.net/man/1/nm) .so | [nm](https://linux.die.net/man/1/nm) .png .jpg .gif .bmp .ppm .tiff .tga | [identify](http://www.imagemagick.org/script/identify.php) • [pil](http://python-pillow.github.io/) • [pil_half](http://python-pillow.github.io/) diff --git a/vigil/tools.toml b/vigil/tools.toml index 09517ab..ecf223f 100644 --- a/vigil/tools.toml +++ b/vigil/tools.toml @@ -25,6 +25,7 @@ tools_for_extensions = [ [["7z"], ["7z"]], [["xz"], ["unxz"]], [["deb"], ["dpkg_contents", "dpkg_info"]], + [["rpm"], ["rpm"]], [["a"], ["ar", "nm"]], [["so"], ["nm"]], [["png", "jpg", "gif", "bmp", "ppm", "tiff", "tga"], ["identify", "pil", @@ -120,6 +121,12 @@ tools_for_extensions = [ command = "dpkg -I" success_status = "normal" +[rpm] + dependencies = ["rpm"] + url = "rpm" + command = "rpm --query --list" + success_status = "normal" + [ar] dependencies = ["binutils"] url = "https://en.wikipedia.org/wiki/Ar_(Unix)"