Skip to content
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

nix: fix prevent-install-and-copy.patch #787

Merged
merged 1 commit into from
Nov 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions nix/patches/prevent-install-and-copy.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
diff --git a/auto_cpufreq/core.py b/auto_cpufreq/core.py
index 6ee9986..5015982 100755
index 3475232..2dff5fb 100755
--- a/auto_cpufreq/core.py
+++ b/auto_cpufreq/core.py
@@ -260,18 +260,12 @@ def get_current_gov():
@@ -277,18 +277,12 @@ def get_current_gov():
)

def cpufreqctl():
Expand All @@ -25,7 +25,7 @@ index 6ee9986..5015982 100755

def footer(l=79): print("\n" + "-" * l + "\n")

@@ -287,27 +281,8 @@ def remove_complete_msg():
@@ -306,29 +300,8 @@ def remove_complete_msg():
footer()

def deploy_daemon():
Expand All @@ -47,6 +47,8 @@ index 6ee9986..5015982 100755
- gnome_power_detect_install()
- gnome_power_svc_disable()
-
- tuned_svc_disable()
-
- tlp_service_detect() # output warning if TLP service is detected
-
- call("/usr/local/bin/auto-cpufreq-install", shell=True)
Expand All @@ -55,7 +57,7 @@ index 6ee9986..5015982 100755

def deploy_daemon_performance():
print("\n" + "-" * 21 + " Deploying auto-cpufreq as a daemon (performance) " + "-" * 22 + "\n")
@@ -339,35 +314,7 @@ def deploy_daemon_performance():
@@ -360,37 +333,7 @@ def deploy_daemon_performance():

call("/usr/local/bin/auto-cpufreq-install", shell=True)

Expand All @@ -73,6 +75,8 @@ index 6ee9986..5015982 100755
- gnome_power_rm_reminder()
- gnome_power_svc_enable()
-
- tuned_svc_enable()
-
- # run auto-cpufreq daemon remove script
- call("/usr/local/bin/auto-cpufreq-remove", shell=True)
-
Expand Down