Closed PhotonQuantum closed 3 years ago
Good find.
There's probably going to be a couple more of these. Paru is effected and I don't believe it calls that function.
Aura doesn't as of yet either.
"Fixed" with https://github.com/archlinux/alpm.rs/commit/6681b33cf1137ee56acc625e67141a3d89daae5b
Will hold off on a proper fix until I find all the functions that may return null and as I don't want to push a v3 just yet.
This https://github.com/archlinux/alpm.rs/commit/c413be436c6848805a1e34f233c3ff4d50e6ea68#diff-6d974fec9cd167345df12f3e136a7be85c0f1bcfe60805940d14e881dda30b6c is my fix for now. Basically the same concept as my last comment but easier to strip out when it comes time for v3.
Also I believe the functions mentioned in #19 are the only functions that should be an option so I think this is all solved.
Local packages don't have a "filename" field. Therefore, calling filename() results in a panic.
Minimal reproducible example:
Output: