Currently when I'm looking for a changelog and a package doesn't have the property set I fall back to opening the homepage, like this:
url=$(xbps-query --repository --property=changelog "$package")
if [[ -n $url ]]; then
url=$(xbps-query --repository --property=homepage "$package")
fi
xdg-open "$url"
With this feature I could rewrite that to something like this:
if ! url=$(xbps-query --repository --property=changelog "$package"); then
url=$(xbps-query --repository --property=homepage "$package")
fi
xdg-open "$url"
Currently when I'm looking for a changelog and a package doesn't have the property set I fall back to opening the homepage, like this:
With this feature I could rewrite that to something like this: