#11021: Fix "sage -info" and a bug when sourcing sage-env more than once
--------------------------------------------------------+-------------------
Reporter: jhpalmieri | Owner: leif
Type: defect | Status:
needs_review
Priority: major | Milestone:
sage-4.7.1
Component: packages | Keywords:
SPKG.txt SAGE.txt -info BUILD sage-env sage-sage sage-spkg
Work_issues: | Upstream: N/A
Reviewer: Kelvin Li, Leif Leonhardy, John Palmieri | Author: Leif
Leonhardy, Kelvin Li
Merged: | Dependencies:
--------------------------------------------------------+-------------------
Comment(by jhpalmieri):
A few issues with [attachment:trac_11021-additional_changes_to_sage-
spkg.scripts.patch] -- line numbers refer to the file sage-spkg (as listed
in the patch):
- line 59, `error >&2 "Error: Environment variable 'BUILD' not set!"`:
"error" should be "echo"
- lines 175-176: the code `(bunzip2 -c "$PKG_SRC" | tar tf -)` seems to
have a zero return value if $PKG_SRC is not a valid bzip2 file. I'm
trying to reach the error message `echo >&2 "Error: '$PKG_SRC' seems to be
corrupted. Exiting."`, but I can't. This is on Mac OS X; on linux, the
above code has return value "2". Running "bunzip2 -c blah" on an invalid
bzip2 file returns a value of 2 on Mac OS X.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11021#comment:33>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.