joehillen / paruz

A fzf terminal UI for paru or pacman
The Unlicense
82 stars 3 forks source link

Remove aur package is broken #4

Open balroggg opened 2 years ago

balroggg commented 2 years ago

Removing aur packages is not working.

Example:

# try to remove with paruz
paruz -R
error: target not found: aur/sublime-text-4

# ok to remove with paru
paru -Rnc sublime-text-4 
obvionaoe commented 2 years ago

I actually think it is broken for all repositories, I also get this error when trying to uninstall from community on Manjaro:

error: target not found: community/pkg

or

error: target not found: aur/pkg
balroggg commented 2 years ago

I checked again and it works for me. For example:

bash -x /usr/bin/paruz -R
...
exec paru -R aur/komikku
balroggg commented 2 years ago

Sorry, double check, still not working. Need to remove 'aur/' prefix from command.

balroggg commented 2 years ago

@obvionaoe you can change script paruz to something like

 declare -a PKGS
+prefix="aur/"
 for PICK in "${PICKS[@]}"; do
+  PICK=${PICK#$prefix}
   PKGS+=("${PICK%% *}")
 done
obvionaoe commented 2 years ago

@joehillen Will you update the AUR release?