-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
auto-cpufreq: 2.3.0 -> 2.4.0 (#339771)
- Loading branch information
Showing
4 changed files
with
120 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,20 @@ | ||
diff --git a/auto_cpufreq/core.py b/auto_cpufreq/core.py | ||
index 58cedb7..89e77a4 100755 | ||
--- a/auto_cpufreq/core.py | ||
+++ b/auto_cpufreq/core.py | ||
@@ -136,26 +136,8 @@ except PermissionError: | ||
|
||
diff --git c/auto_cpufreq/core.py i/auto_cpufreq/core.py | ||
index b51d55d..b0bff1e 100755 | ||
--- c/auto_cpufreq/core.py | ||
+++ i/auto_cpufreq/core.py | ||
@@ -96,13 +96,8 @@ except PermissionError: | ||
# display running version of auto-cpufreq | ||
def app_version(): | ||
- | ||
- print("auto-cpufreq version: ", end="") | ||
- | ||
- # snap package | ||
- if os.getenv("PKG_MARKER") == "SNAP": | ||
- print(getoutput(r"echo \(Snap\) $SNAP_VERSION")) | ||
- # aur package | ||
- elif dist_name in ["arch", "manjaro", "garuda"]: | ||
- aur_pkg_check = call("pacman -Qs auto-cpufreq > /dev/null", shell=True) | ||
- if aur_pkg_check == 1: | ||
- print(get_formatted_version()) | ||
- else: | ||
- print(getoutput("pacman -Qi auto-cpufreq | grep Version")) | ||
- if IS_INSTALLED_WITH_SNAP: print(getoutput(r"echo \(Snap\) $SNAP_VERSION")) | ||
- elif IS_INSTALLED_WITH_AUR: print(getoutput("pacman -Qi auto-cpufreq | grep Version")) | ||
- else: | ||
- # source code (auto-cpufreq-installer) | ||
- try: | ||
- print(get_formatted_version()) | ||
- except Exception as e: | ||
- print(repr(e)) | ||
- pass | ||
+ print("auto-cpufreq version: @version@") | ||
+ print("Git commit: v@version@") | ||
|
||
- try: print(get_formatted_version()) | ||
- except Exception as e: print(repr(e)) | ||
+ print("auto-cpufreq version: @version@") | ||
+ print("Git commit: v@version@") | ||
|
||
def check_for_update(): | ||
# returns True if a new release is available from the GitHub repo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.