mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
sys-power/auto-cpufreq: remove redundant file existence check
The file in question is being managed by the PM, therefore it's guaranteed to not exist anymore during the post-removal phase. Signed-off-by: Lucio Sauer <watermanpaint@posteo.net>
This commit is contained in:
@@ -120,11 +120,6 @@ pkg_postrm() {
|
||||
xdg_icon_cache_update
|
||||
xdg_desktop_database_update
|
||||
|
||||
# Remove the polkit policy
|
||||
if [ -f "/usr/share/polkit-1/actions/org.auto-cpufreq.pkexec.policy" ]; then
|
||||
rm -rf /usr/share/polkit-1/actions/org.auto-cpufreq.pkexec.policy || die
|
||||
fi
|
||||
|
||||
# Remove the override.pickle file and directory
|
||||
if [[ -d "/var/lib/auto-cpufreq" ]]; then
|
||||
rm -rf /var/lib/auto-cpufreq
|
||||
|
||||
@@ -120,11 +120,6 @@ pkg_postrm() {
|
||||
xdg_icon_cache_update
|
||||
xdg_desktop_database_update
|
||||
|
||||
# Remove the polkit policy
|
||||
if [ -f "/usr/share/polkit-1/actions/org.auto-cpufreq.pkexec.policy" ]; then
|
||||
rm -rf /usr/share/polkit-1/actions/org.auto-cpufreq.pkexec.policy || die
|
||||
fi
|
||||
|
||||
# Remove the override.pickle file and directory
|
||||
if [[ -d "/var/lib/auto-cpufreq" ]]; then
|
||||
rm -rf /var/lib/auto-cpufreq
|
||||
|
||||
Reference in New Issue
Block a user