-
Notifications
You must be signed in to change notification settings - Fork 155
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
package_ensure
does not safely ensure a package is installed
#172
Comments
Hi Benjamin, Good catch! I can't remember exactly why we tested for |
Hi Sebastien, thanks for your quick feedback! Thanks! |
Yes, if the package is not fully installed, it should be (re)installed. But the tricky is to make sure find the proper command arguments for |
I don't think I can make the time in near future to come up with a PR. As you described it's a bit more complicated than just testing for one other value. |
same error here! |
Hi,
I have a pretty bare Ubuntu 12.04 system (actually a hashicorp/precise64 Vagrant box) in which
package_ensure('git')
reportsdeinstall ok config-files OK
, or rather the following as full output.According to the man dpkg(1), the
config-files
state means the package is not installed but config files are present.So I was wondering if it'd make sense to expand the test for
not-installed
in package_ensure_apt to test for more states or at least report that packages are not installed, but will still not be installed by cuisine and manual intervention (or whatever) is needed.I can come up with a PR, but would like your opinion on the semantics of
package_ensure
.Thanks for your time!
The text was updated successfully, but these errors were encountered: