Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 282647 - app-portage/portage-utils-0.1.29 - qcheck doesn't return > 0 if a package check reports inconsistencies
Summary: app-portage/portage-utils-0.1.29 - qcheck doesn't return > 0 if a package che...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Portage Utils Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-25 08:42 UTC by Elias Probst
Modified: 2010-06-08 05:38 UTC (History)
0 users

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 Elias Probst 2009-08-25 08:42:02 UTC
It is not possible using qcheck in a script by re-using qcheck's return value, as qcheck returns always 0.

Reproducible: Always

Steps to Reproduce:
1. Run qcheck on a "broken" package
2. Check the return value of qcheck

Actual Results:  
The return value is 0

Expected Results:  
When running qcheck on a "broken" package, qcheck's return value should be > 0

This bash script code doesn't work due to qcheck'
s current behaviour:

for package in $(qlist -CI);
do
  if qcheck ${package};
  then
    true;
  else
    echo ${package} >> /tmp/qchecks;
  fi;
done
Comment 1 SpanKY gentoo-dev 2010-06-08 05:38:28 UTC
added to cvs.  thanks for the suggestion.

http://sources.gentoo.org/gentoo-projects/portage-utils/qcheck.c?r1=1.44&r2=1.45