Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #27670: package install can print confusing error messages
For example, while installing the kash3 package, the output includes the following lines: {{{ usage: sage-spkg-uninstall [-h] [-v] [-k] spkg [sage_local] sage-spkg-uninstall: error: argument spkg: invalid spkg_type value: 'kash3' }}} This is due to the uninstall script throwing incorrect error types. After applying this ticket's patch, the output reads: {{{ usage: sage-spkg-uninstall [-h] [-v] [-k] spkg [sage_local] sage-spkg-uninstall: error: argument spkg: 'kash3' is not a known spkg }}} Which is at least more sensible. `kash3` is not known because it is an old-style package that didn't create a directory in `build/pkgs`. URL: https://trac.sagemath.org/27670 Reported by: gh-BrentBaccala Ticket author(s): Brent Baccala Reviewer(s): Erik Bray
- Loading branch information