We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
apt::mark with setting "auto" will execute every run
apt::mark { 'lib1': setting => auto, }
The behaviour is quite similar to #1166.
To mark a package as automatic if it is installed and not marked as automatic.
The main issue I believe is that the module tries to mark packages as auto that are not installed. What happens in that case:
onlyif
Suggest changing the check to something like:
$onlyif_cmd = ["/usr/bin/dpkg -l $title | grep '^ii '" ]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the Bug
apt::mark with setting "auto" will execute every run
apt::mark { 'lib1':
setting => auto,
}
The behaviour is quite similar to #1166.
Expected Behavior
To mark a package as automatic if it is installed and not marked as automatic.
Environment
Additional Context
The main issue I believe is that the module tries to mark packages as auto that are not installed. What happens in that case:
onlyif
setting wil always return true: "dpkg -l " will show that the package is uninstalled, but that doesn't mean it returns non-zero exit status. It only does so if the package doesn't exist in the sources.https://github.com/puppetlabs/puppetlabs-apt/blob/v10.0.1/manifests/mark.pp#L29
Suggest changing the check to something like:
$onlyif_cmd = ["/usr/bin/dpkg -l $title | grep '^ii '" ]
The text was updated successfully, but these errors were encountered: