summaryrefslogtreecommitdiff
path: root/lib/chef/win32/memory.rb
diff options
context:
space:
mode:
authorTakuto Komazaki <takuto.komazaki@gree.net>2017-11-02 14:30:36 +0900
committerTakuto Komazaki <takuto.komazaki@gree.net>2017-11-02 15:01:41 +0900
commit2b60a984cf817b5a554a749e1cdfa16f4952eedf (patch)
tree936a375d23b69442c70f01ed9403762eb7c229ed /lib/chef/win32/memory.rb
parent7f0b5150c32994b4ad593505172c5834a984b087 (diff)
downloadchef-pr/6554.tar.gz
Fix the invalid version comparison of apt packages.pr/6554
The strings of dpkg versions are more complex than the Gem::Version and not compatible with it. Using Gem::Version to compare versions of dpkg packages will cause mistakes or raise the exeption of 'Malformed version number..'. please see a simple example: https://gist.github.com/komazarari/c6b33b29a0e31e9c62bbc2f0b2091647 Prefer to use the dpkg cli. https://debian-handbook.info/browse/en-US/stable/sect.manipulating-packages-with-dpkg.html Signed-off-by: Takuto Komazaki <komazarari@gmail.com>
Diffstat (limited to 'lib/chef/win32/memory.rb')
0 files changed, 0 insertions, 0 deletions