Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check_for_package method should not use which command #190

Closed
PierreRambaud opened this issue Mar 25, 2014 · 3 comments
Closed

Check_for_package method should not use which command #190

PierreRambaud opened this issue Mar 25, 2014 · 3 comments

Comments

@PierreRambaud
Copy link

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.

@PierreRambaud PierreRambaud changed the title Check_for_package should not use which Check_for_package should not use which command Mar 25, 2014
@PierreRambaud PierreRambaud changed the title Check_for_package should not use which command Check_for_package method should not use which command Mar 25, 2014
@anodelman
Copy link
Contributor

Yes, the wording here is definitely wrong. I am going to put a version of this bug into the internal bug tracker and start working on a patch.

@anodelman
Copy link
Contributor

In PR,

#229

@PierreRambaud
Copy link
Author

Thanks ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants