From efd03a1d165e90e8f064630ad05d536b11e0e0af Mon Sep 17 00:00:00 2001 From: Mark Wagie Date: Sun, 7 Feb 2021 11:25:08 -0700 Subject: [PATCH] Remove pacman wildcard (#172) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ``` ❯ pacman -Qs auto-cpufreq local/auto-cpufreq-git 1.6.0.r0.g0ce8311-1 Automatic CPU speed & power optimizer ``` With wildcard: ``` auto-cpufreq version: error: package 'auto-cpufreq*' was not found ``` ``` ❯ pacman -Qi auto-cpufreq* | grep Version zsh: no matches found: auto-cpufreq* ``` Without wildcard: ``` auto-cpufreq version: Version : 1.6.0.r0.g0ce8311-1 ``` ``` ❯ pacman -Qi auto-cpufreq | grep Version Version : 1.6.0.r0.g0ce8311-1 ``` It turns out it only works with the wildcard in my `pkgbuilds` directory where `auto-cpufreq-git` lives. Weird. --- auto_cpufreq/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto_cpufreq/core.py b/auto_cpufreq/core.py index fd5c0fa..41f1905 100644 --- a/auto_cpufreq/core.py +++ b/auto_cpufreq/core.py @@ -72,7 +72,7 @@ def app_version(): if aur_pkg_check == 1: print("Git commit:", check_output(["git", "describe", "--always"]).strip().decode()) else: - print(getoutput("pacman -Qi auto-cpufreq* | grep Version")) + print(getoutput("pacman -Qi auto-cpufreq | grep Version")) else: # source code (auto-cpufreq-installer) try: