Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 448190 - equery check -o "*" does not separate packages with a blank line
Summary: equery check -o "*" does not separate packages with a blank line
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: Normal trivial (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 346443
  Show dependency tree
 
Reported: 2012-12-22 15:36 UTC by Francesco Turco
Modified: 2013-09-05 17:12 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Francesco Turco 2012-12-22 15:36:08 UTC
I'm using the equery command from app-portage/gentoolkit-0.3.0.7.

I periodically run the following command for checking system integrity:

> equery check -o "*"

But it's slightly difficult to immediately understand the results because packages are not separated by a blank line, as equery does when you pass it multiple packages explicitely on the command line.

The problem happens even without using the -o option.

This should be easy to fix.

Reproducible: Always
Comment 1 Brian Dolbec gentoo-dev 2012-12-22 17:59:43 UTC
Ok, The difference is that "*" is just one query.  It will separate queries with a blank line.  Each sub package from the * query is not normally separated.  

big_daddy gentoolkit # equery check -o "*"
* Checking app-admin/sudo-1.8.6_p3 ...
!!! /etc/sudoers has incorrect MD5sum
   54 out of 55 files passed
* Checking app-admin/syslog-ng-3.3.5-r1 ...
!!! /etc/conf.d/syslog-ng has wrong mtime (is 1347946597, should be 1342312810)
   156 out of 157 files passed
<snip>...
^C
big_daddy gentoolkit # equery check "*"
<snip>...
* Checking app-admin/sabayon-2.30.1 ...
   346 out of 346 files passed
* Checking app-admin/sudo-1.8.6_p3 ...
!!! /etc/sudoers has incorrect MD5sum
   54 out of 55 files passed
* Checking app-admin/superadduser-1.0.9 ...
   7 out of 7 files passed
* Checking app-admin/syslog-ng-3.3.5-r1 ...
!!! /etc/conf.d/syslog-ng has wrong mtime (is 1347946597, should be 1342312810)
   156 out of 157 files passed
* Checking app-admin/system-config-printer-common-1.3.12 ...
   54 out of 54 files passed
^C
big_daddy gentoolkit # equery -q check "*"
app-accessibility/at-spi2-core-2.4.2: failed(0)
app-accessibility/caribou-0.4.5: failed(0)
app-admin/apg-2.3.0b-r5: failed(0)
app-admin/eclean-kernel-0.3.1: failed(0)
app-admin/eselect-1.3.3-r100: failed(0)
app-admin/eselect-ctags-1.14: failed(0)
...


What you want is:

big_daddy gentoolkit # equery check -o "*"
* Checking app-admin/sudo-1.8.6_p3 ...
!!! /etc/sudoers has incorrect MD5sum
   54 out of 55 files passed

* Checking app-admin/syslog-ng-3.3.5-r1 ...
!!! /etc/conf.d/syslog-ng has wrong mtime (is 1347946597, should be 1342312810)
   156 out of 157 files passed

* Checking app-editors/gvim-7.3.646 ...
!!! /usr/share/man/man1/gvim.1.gz does not exist
!!! /usr/share/man/man1/gview.1.gz does not exist
!!! /usr/share/man/man1/gvimdiff.1.gz does not exist
   21 out of 24 files passed

* Checking app-editors/vim-core-7.3.646 ...
!!! /usr/share/vim/vim73/doc/tags has incorrect MD5sum
   1695 out of 1696 files passed

^C

meh, I don't see the current behavior as hard to read, but...

but if you want to fix your current install, edit gentoolkit/equery/check.py, in  the "def checks_printer(cpv, data, verbose=True, only_failures=False):"
code block add line: 
"		print()"
just before the "else:"  The correct indent is important!!! use tabs

	if verbose:
		n_passed = pp.number(str(n_passed))
		n_checked = pp.number(str(n_checked))
		info = "   %(n_passed)s out of %(n_checked)s files passed"
		print(info % locals())
		print()
	else:
		print("failed(%s)" % n_failed)
Comment 2 Brian Dolbec gentoo-dev 2012-12-22 20:29:39 UTC
Done in commit:
http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=35132cb5822d4209cec0272ccc875a45bf830cf8

It is available now in gentoolkit-9999.
Comment 3 Paul Varner (RETIRED) gentoo-dev 2013-09-05 17:12:04 UTC
Released in gentoolkit-0.3.0.8