Installed packages on Gentoo
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OCS Inventory: Unified Unix Agent |
Fix Released
|
Medium
|
Frank |
Bug Description
the Gentoo.pm module uses equery to list all installed packages.
The syntax and dfault behaviour of equery changed in the last releases.
I've been able to get the correct list changing only 2 lines.
Here is the diff beetween the 2.0.1 version and mine :
--- Ocsinventory-
+++ Ocsinventory-
@@ -10,8 +10,8 @@
my $common = $params->{common};
# TODO: This had been rewrite from the Linux agent _WITHOUT_ being checked!
- foreach (`equery list -i`){
- if (/^([a-
+ foreach (`equery list --format='\$cp \$fullversion' '*'`){
+ if (/^(.*) (.*)/) {
'NAME' => $1,
'VERSION' => $2,
Changed in ocsinventory-unix-agent: | |
status: | New → Fix Committed |
assignee: | mortheres (mortheres) → Frank (frank-bourdeau) |
Changed in ocsinventory-unix-agent: | |
milestone: | none → 2.1rc1 |
Changed in ocsinventory-unix-agent: | |
status: | Fix Committed → Fix Released |
Hi,
Thanks a lot for your report and your patch. I do not have a Gentoo system on my hand and I just want to know if "equery list --format='\$cp \$fullversion' '*'" command will work on older Gentoo systems. Do you have an older Gentoo system to test ? I will try using a Gentoo live CD but it could be glad if you confirm that it works on older Gentoo systems.
Kind regards,
Guillaume