[Fusioninventory-commit] [fusinv/fusioninventory-agent] 65474f: import Win32::Job based runCommand()

Gonéri Le Bouder goneri at rulezlan.org
Fri May 11 15:20:14 UTC 2012


  Branch: refs/heads/2.2.x
  Home:   https://github.com/fusinv/fusioninventory-agent
  Commit: 65474fc5d5383202a1b0d17e4aceabb552902196
      https://github.com/fusinv/fusioninventory-agent/commit/65474fc5d5383202a1b0d17e4aceabb552902196
  Author: Gonéri Le Bouder <goneri at rulezlan.org>
  Date:   2012-05-10 (Thu, 10 May 2012)

  Changed paths:
    M lib/FusionInventory/Agent/Tools/Win32.pm
    A t/tools/win32.t

  Log Message:
  -----------
  import Win32::Job based runCommand()


  Commit: a6269c878ddb1c0784f1fb779ae6caa33c73f0e1
      https://github.com/fusinv/fusioninventory-agent/commit/a6269c878ddb1c0784f1fb779ae6caa33c73f0e1
  Author: Gonéri Le Bouder <goneri at rulezlan.org>
  Date:   2012-05-10 (Thu, 10 May 2012)

  Changed paths:
    A t/fake/windows/Win32/Job.pm
    M t/tools/win32.t

  Log Message:
  -----------
  ignore on the test on non-Win32 OS


  Commit: 4c6be1e47f6998633f1ac27761cdcee4208b47cf
      https://github.com/fusinv/fusioninventory-agent/commit/4c6be1e47f6998633f1ac27761cdcee4208b47cf
  Author: Gonéri Le Bouder <goneri at rulezlan.org>
  Date:   2012-05-10 (Thu, 10 May 2012)

  Changed paths:
    M t/tools/win32.t

  Log Message:
  -----------
  fix the number of test


  Commit: cb263dd7c7641643f3c5c3b0ee29dc92ef535cdc
      https://github.com/fusinv/fusioninventory-agent/commit/cb263dd7c7641643f3c5c3b0ee29dc92ef535cdc
  Author: Gonéri Le Bouder <goneri at rulezlan.org>
  Date:   2012-05-11 (Fri, 11 May 2012)

  Changed paths:
    M lib/FusionInventory/Agent/HTTP/Client/Fusion.pm

  Log Message:
  -----------
  use uri_escape_utf8 instead of uri_escape

since string can be in UTF8, we have to use uri_escape_utf8()


  Commit: 7f27e58addfb22cf98b375f01755d5c823a83d16
      https://github.com/fusinv/fusioninventory-agent/commit/7f27e58addfb22cf98b375f01755d5c823a83d16
  Author: Gonéri Le Bouder <goneri at rulezlan.org>
  Date:   2012-05-11 (Fri, 11 May 2012)

  Changed paths:
    M lib/FusionInventory/Agent/Task/Inventory.pm

  Log Message:
  -----------
  W32: encode local filename unicode if possible

if Win32::Unicode::File::open() is available, we use it to create
the file name. This is useful for the rare cases when the computer
name if in a local encoding.

closes: #272


  Commit: b8d9015d42195a58de6215f7c5ee39f092a053d9
      https://github.com/fusinv/fusioninventory-agent/commit/b8d9015d42195a58de6215f7c5ee39f092a053d9
  Author: Gonéri Le Bouder <goneri at rulezlan.org>
  Date:   2012-05-11 (Fri, 11 May 2012)

  Changed paths:
    M lib/FusionInventory/Agent/Tools.pm

  Log Message:
  -----------
  don't reencode if perl flagged string as utf8

If Perl flagged a string as UTF8 internally, there is no reason
to reencode it. A best, this will hide a bug somewhere else.

In my opinion, we should no try to encode string at all.

To know if a string is flagged as UTF8, one can use Devel::Peek.


  Commit: ee4e8a8c9003e16b85e49aed5a759d5a563ed43d
      https://github.com/fusinv/fusioninventory-agent/commit/ee4e8a8c9003e16b85e49aed5a759d5a563ed43d
  Author: Gonéri Le Bouder <goneri at rulezlan.org>
  Date:   2012-05-11 (Fri, 11 May 2012)

  Changed paths:
    M lib/FusionInventory/Agent/Tools/Hostname.pm

  Log Message:
  -----------
  use the UTF8 internal struct of Perl

the decode("UCS-2le", $buffer) return a string in Perl internal
format.
If the string is in UTF8, it will be correctly flagged. There is
no reason to try to be cleaver, espcially now getSanitizedString()
correctly deal with such string.
see commit:b8d9015d42195a58de6215f7c5ee39f092a053d9


  Commit: 1d3f864b78ae33218b9a4b79ab52d5e446d31e85
      https://github.com/fusinv/fusioninventory-agent/commit/1d3f864b78ae33218b9a4b79ab52d5e446d31e85
  Author: Gonéri Le Bouder <goneri at rulezlan.org>
  Date:   2012-05-11 (Fri, 11 May 2012)

  Changed paths:
    M lib/FusionInventory/Agent/Task/Inventory/Input/Win32/OS.pm

  Log Message:
  -----------
  do not overwrite hostname returned by getHostname

Tools::Win32::getHostname() returns a valid unicode hostname
unlike WMI.


  Commit: 161d9a0d246fd21097b092ba9cc1182564e3594a
      https://github.com/fusinv/fusioninventory-agent/commit/161d9a0d246fd21097b092ba9cc1182564e3594a
  Author: Gonéri Le Bouder <goneri at rulezlan.org>
  Date:   2012-05-11 (Fri, 11 May 2012)

  Changed paths:
    M t/tools/win32.t

  Log Message:
  -----------
  fix the build on non Windows OSes


  Commit: b0b6fe1bc64ed990c5d0b5ee797344e4ed8b0587
      https://github.com/fusinv/fusioninventory-agent/commit/b0b6fe1bc64ed990c5d0b5ee797344e4ed8b0587
  Author: Gonéri Le Bouder <goneri at rulezlan.org>
  Date:   2012-05-11 (Fri, 11 May 2012)

  Changed paths:
    M lib/FusionInventory/Agent/Task/Inventory/Input/Generic/Screen.pm

  Log Message:
  -----------
  Linux: load edid file directly from /sys

get-edid doesn't work with HDMI screen. This solution uses
/sys directly if possible.


  Commit: 86e390befeb31a5e153c264a4f34ee32fbb886bd
      https://github.com/fusinv/fusioninventory-agent/commit/86e390befeb31a5e153c264a4f34ee32fbb886bd
  Author: Gonéri Le Bouder <goneri at rulezlan.org>
  Date:   2012-05-11 (Fri, 11 May 2012)

  Changed paths:
    M lib/FusionInventory/Agent/Task/Inventory/Input/Generic/Processes.pm
    M lib/FusionInventory/Agent/Task/Inventory/Input/Linux/Storages/Adaptec.pm
    M lib/FusionInventory/Agent/Task/Inventory/Input/Linux/Storages/Lsilogic.pm
    M lib/FusionInventory/Agent/Task/Inventory/Input/Virtualization/Qemu.pm
    M lib/FusionInventory/Agent/Tools/Linux.pm
    M lib/FusionInventory/Agent/Tools/Network.pm
    M lib/FusionInventory/Agent/Tools/Win32.pm
    A resources/linux/mpt-status/sample1
    A resources/linux/mpt-status/sample2
    A resources/linux/proc/scsi/linux3
    A resources/linux/proc/scsi/linux4
    R resources/linux/smartctl/dell-xt2
    A resources/linux/smartctl/sample1
    A resources/linux/smartctl/sample2
    A resources/linux/smartctl/sample3
    A resources/linux/smartctl/sample4
    M t/inventory/linux/storages/adaptec.t
    A t/inventory/linux/storages/lsilogic.t
    M t/tools/linux.t

  Log Message:
  -----------
  Merge remote-tracking branch 'origin/2.2.x' into 2.2.x


Compare: https://github.com/fusinv/fusioninventory-agent/compare/d70e396...86e390b


More information about the Fusioninventory-commit mailing list