1 # defined typeapt::mark
4 # auto, manual, hold, unhold
5 # specifies the behavior of apt in case of no more dependencies installed
6 # https://manpages.debian.org/sretch/apt/apt-mark.8.en.html
9 Enum['auto','manual','hold','unhold'] $setting,
16 $unless_cmd = "/usr/bin/apt-mark show${setting} ${title} | /bin/fgrep -qs ${title}"
19 exec { "/usr/bin/apt-mark ${setting} ${title}":
20 onlyif => "/usr/bin/dpkg -l ${title}",
21 unless => $unless_cmd,