sorin-ionescu/prezto — pull request #265 by dnuux (2012-09-04 14:20:51+00:00)
Title: Fix pacman-list-explicit function

Currently the function only works when there are no updates available, since then --query --upgrades returns nothing and --query --explicit lists info for all packages when given no arguments. If there are updates available, the function currently lists only the available updates.

I'm not sure why that line was there to begin with but I simply fixed the problem by removing it. Pacman can also list installed packages without root so I removed the sudo bit too.