Improve the way we upgrade packages
This is a bit of a grab bag for issues I found while trying to fix #722 (closed).
See individual commits.
This is a bit of a grab bag for issues I found while trying to fix #722 (closed).
See individual commits.