Skip to content

Commit

Permalink
sys-power/auto-cpufreq: remove redundant file existence check
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
antecrescent committed Aug 13, 2024
1 parent 7d5a0d1 commit b102a73
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions sys-power/auto-cpufreq/auto-cpufreq-2.2.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 0 additions & 5 deletions sys-power/auto-cpufreq/auto-cpufreq-2.3.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b102a73

Please sign in to comment.