You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For Unix::pkg, the method check_for_package is wrong.
Currently, the method check for a program instead of a package.
For example:
If we install libxml2-dev on a Debian os, we can't use check_for_package(master, 'libxml2-dev')
The real command to checking if a package is installed on a debian|ubuntu os is dpkg -s #{name}.
For others, I don't know a good command without grep or regex to check if package is installed.
The text was updated successfully, but these errors were encountered:
PierreRambaud
changed the title
Check_for_package should not use which
Check_for_package should not use which command
Mar 25, 2014
PierreRambaud
changed the title
Check_for_package should not use which command
Check_for_package method should not use which command
Mar 25, 2014
For
Unix::pkg
, the methodcheck_for_package
is wrong.Currently, the method check for a program instead of a package.
For example:
If we install
libxml2-dev
on aDebian
os, we can't usecheck_for_package(master, 'libxml2-dev')
The real command to checking if a package is installed on a debian|ubuntu os is
dpkg -s #{name}
.For others, I don't know a good command without grep or regex to check if package is installed.
The text was updated successfully, but these errors were encountered: