Unified Agent can't extract zip packages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OCS Inventory: Unified Unix Agent |
Fix Released
|
Low
|
Frank |
Bug Description
Hi,
When building an automatic redistribution packages, zip format is used by default. If there is no problem with windows agent, Unified Unix Agent just try to use tar in the build_package function.
I added a little fix to try unzip if tar extraction failed:
In Download.pm file, I replaced
---
if( system( $common-
}
---
with
---
if( system( $common-
if( system( $common-
}
}
---
Changed in ocsinventory-unix-agent: | |
importance: | Undecided → Low |
status: | New → Fix Committed |
assignee: | nobody → Frank (frank-bourdeau) |
Changed in ocsinventory-unix-agent: | |
milestone: | none → 2.1rc1 |
Changed in ocsinventory-unix-agent: | |
status: | Fix Committed → Fix Released |
Thanks for your patch YvesG.
But I'm little confused. Unzip command can't extract tar.gz archives but only zip archives. So your patch can't run correctly.