bedrocklinux / bedrocklinux-userland

This tracks development for the things such as scripts and (defaults for) config files for Bedrock Linux
https://bedrocklinux.org
GNU General Public License v2.0
603 stars 64 forks source link

pmm: fix awk syntax when package caching in yay #307

Closed medanisjbara closed 1 week ago

medanisjbara commented 1 month ago

Addresses this issue upon updating package database.

jbara@localhost ~ $ sudo pmm --pm yay --sync
* sudo -u jbara strat -r arch yay -Sy
[sudo] password for jbara: 
:: Synchronizing package databases...
 core is up to date
 extra is up to date
* Caching arch:yay package database
awk: cmd. line:1: $3 == "unknown-version" {     print $2"   0"      next    }   {       sub(/[0-9]*:/, "", $3);     sub(/^[^0-9]*/, "", $3);        sub(/[^0-9.].*/, "", $3);       sub(/[.]$/, "", $3);        print $2"   "$3 }
awk: cmd. line:1:                                                   ^ syntax error
jbara@localhost ~ $