pamac-cli `reinstall` command lacks support of command substitution
Pamac Version
10.2.2-6
Libpamac Version
11.1.3-1
Desktop environment
Terminal UI
What's not working
No matter of exact interpreter (bash, zsh are checked) if to use command substitution inside of reinstall
action, I see space to dash replace which makes package name string and version string concatenation into a single string.
For example the info
action is not involved in the issue.
How to reproduce?
details of exmple
$ pamac list -m
inxi-perl-git r4485.570b94ab-1 AUR 1.0 MB
krusader-git 2.8.0.dev.r6379.g04e6286f-1 AUR 4.9 MB
vscodium-bin 1.61.2-4 AUR 281.8 MB
$ pamac list -m --quiet
inxi-perl-git
krusader-git
vscodium-bin
$ echo $(pamac list -m --quiet)
inxi-perl-git krusader-git vscodium-bin
$ pamac reinstall $(pamac list -m --quiet)
Error: target not found: inxi-perl-git-r4485.570b94ab-1
$ echo $0
/bin/bash
$ echo $?
0
$ pamac reinstall $(pamac list -m --quiet)
Error: target not found: inxi-perl-git-r4485.570b94ab-1
$ echo $?
1
$ pamac info $(pamac list -m --quiet)
Name : inxi-perl-git
Version : r4153.fe6666c6-2
Description : Pinxi, development branch of inxi, a full featured CLI system information tool
URL : https://smxi.org/docs/inxi.htm
Licences : GPL3
Repository : AUR
Installed Size : 1.0 MB
Depends On : coreutils pciutils perl procps-ng
Optional Dependencies : bluez-tools: bt-adapter: -E bluetooth data (if no hciconfig)
bluez-utils-compat: hciconfig: -E bluetooth HCI data
bind: -i wlan IP
dmidecode: inxi -M if no sys machine data [Installed]
file: inxi -o unmounted file system [Installed]
freeipmi: ipmi-sensors: -s IPMI sensors
hddtemp: inxi -Dx show hdd temp
iproute2: inxi -i ip lan [Installed]
ipmitool: -s IPMI sensors
kmod: inxi -Ax,-Nx module version [Installed]
lm_sensors: inxi -s sensors output [Installed]
mesa-demos: inxi -G glx info [Installed]
net-tools: inxi -i ip lan-deprecated
perl-io-socket-ssl: -U; -w,-W; -i (if dig not installed)
perl-cpanel-json-xs: --output json - required for export
perl-json-xs: --output json - required for export (legacy)
perl-xml-dumper: --output xml - Crude and raw
systemd-sysvcompat: inxi -I runlevel [Installed]
sudo: inxi -Dx hddtemp-user;-o file-user [Installed]
tree: --debugger 20,21 /sys tree
upower: -sx attached device battery info [Installed]
usbutils: inxi -A usb audio;-N usb networking [Installed]
wmctrl: -S active window manager (not all wm)
xorg-xdpyinfo: inxi -G multi screen resolution [Installed]
xorg-xprop: inxi -S desktop data [Installed]
xorg-xrandr: inxi -G single screen resolution [Installed]
Make Dependencies : git
Packager : Unknown Packager
Maintainer : FabioLolix
First Submitted : 04/02/19
Last Modified : 21/03/21
Votes : 1
Build Date : 02/11/21
Install Date : 02/11/21
Install Reason : Explicitly installed
Name : krusader-git
Version : 2.8.0.dev.r6241.g5fec71dd-1
Description : Advanced twin panel file manager for KDE. (GIT version)
URL : http://www.krusader.org
Licences : GPL
Repository : AUR
Installed Size : 4.9 MB
Depends On : kparts hicolor-icon-theme
Optional Dependencies : xz: LZMA and XZ archive support [Installed]
unzip: ZIP decompression support [Installed]
zip: ZIP archive support [Installed]
lhasa: LHA archive support
cpio: cpio archive support
unrar: RAR decompression support
arj: ARJ archive support
unarj: ARJ decompression support
unace: ACE decompression support
p7zip: 7z archive support [Installed]
keditbookmarks: Manage Bookmarks functionality [Installed]
kde-cli-tools: manage file associations, root mode [Installed]
kompare: file contents comparison [Installed]
kdiff3: file contents comparison
krename: advanced rename tool [Installed]
konsole: terminal [Installed]
ktexteditor: file editing support [Installed]
Make Dependencies : extra-cmake-modules kdoctools git
Provides : krusader
Conflicts With : krusader
Packager : Unknown Packager
Maintainer : sir_lucjan
First Submitted : 10/01/11
Last Modified : 14/06/20
Votes : 40
Build Date : 17/10/21
Install Date : 17/10/21
Install Reason : Explicitly installed
Name : vscodium-bin
Version : 1.61.2-4
Description : Binary releases of VS Code without MS branding/telemetry/licensing.
URL : https://github.com/VSCodium/vscodium
Licences : MIT
Repository : AUR
Installed Size : 281.8 MB
Depends On : fontconfig libxtst gtk3 python cairo alsa-lib nss gcc-libs libnotify libxss glibc>=2.28-4
Optional Dependencies : gvfs: For move to trash functionality [Installed]
libdbusmenu-glib: For KDE global menu [Installed]
Provides : codium
Conflicts With : vscodium vscodium-git
Packager : Unknown Packager
Maintainer : sperg512
First Submitted : 23/09/20
Last Modified : 27/10/21
Votes : 109
Build Date : 26/10/21
Install Date : 26/10/21
Install Reason : Explicitly installed
$ pamac info $(pamac list -m --quiet) | grep name
krename: advanced rename tool [Installed]
$ pamac info $(pamac list -m --quiet) | grep Name
Name : inxi-perl-git
Name : krusader-git
Name : vscodium-bin
$ pamac list -m --quiet | grep 44
$ pamac list -m --quiet | grep -v inxi
krusader-git
vscodium-bin
$ pamac reinstall $(pamac list -m --quiet | grep -v inxi)
Error: target not found: krusader-git-2.8.0.dev.r6379.g04e6286f-1
$
PS
People, did you saw the opened issues of #1154 (closed), #1155, #1156 (closed), #1157 (closed), #1158 ?
All of them I found during of investigation of that issue.
And this issue I found while want to answer in the bug report thread of completely different project. So to report bugs is not so easy: while proceeding to answer on already submitted earlier I found those 5 plus current one lacks at once in completely different (this) project.
Do you actually use pamac
a bit more complicated way than pamac update
, pamac remove
, pamac install
?
Please use your app on your machines. The only way to make the app much better is then all authors and developers use it by themselves. Examples: Total Commander, WinRAR, Foobar2000 are just perfect apps cause authors use them constantly and always find what to improve.
Anyway thank you for the app!
EDIT: Added one more: #1160 (closed)
I wish I went crazy and was wrong in all reports or at least almost all.