2013-04-01 Sancho Lerena <slerena@artica.es>
* unix/plugins/inventory: Improved software inventory in RPM format. Removed dupes and "orphan" lines. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7903 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
c47d3794e5
commit
1eb46d5843
|
@ -1,3 +1,8 @@
|
|||
2013-04-01 Sancho Lerena <slerena@artica.es>
|
||||
|
||||
* unix/plugins/inventory: Improved software inventory in RPM format.
|
||||
Removed dupes and "orphan" lines.
|
||||
|
||||
2013-03-11 Dario Rodriguez <dario@artica.es>
|
||||
|
||||
* win32/bin/util/curl.exe: Added curl binary for
|
||||
|
|
|
@ -184,8 +184,8 @@ sub get_software_module_data ($$) {
|
|||
if ($distrib_id eq 'DEBIAN') {
|
||||
@soft = `dpkg -l | grep ii`;
|
||||
} else {
|
||||
|
||||
@soft = `rpm -q -a --qf "ii %{NAME} %{VERSION} %{SUMMARY}\n"`;
|
||||
# Sometimes rpm return data splitted in two lines, and with dupes. Thats bad for our inventory system
|
||||
@soft = `rpm -q -a --qf "ii %{NAME} %{VERSION} %{SUMMARY}\n" | grep "^ii" | sort -u`;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue