#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 leif):

 Replying to [comment:38 jhpalmieri]:
 > > MacOS... What does cat /dev/null | tar tf - give?
 >
 {{{
 #!sh
 $ cat /dev/null | tar tf -
 $ echo $?
 0
 }}}
 That's odd. IIRC we require '''GNU''' `tar`, which behaves correctly:
 {{{
 #!sh
 $ cat /dev/null | tar tf -
 tar: This does not look like a tar archive
 tar: Exiting with failure status due to previous errors
 }}}

 Maybe we can work around in a dumb way (which I'd still prefer over using
 `pipestatus` ''there'') by doing
 {{{
 #!sh
 (bunzip2 -c "$PKG_SRC" || echo foo) | tar tf -
 }}}
 which should fail in any case if `bunzip2` fails.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11021#comment:39>
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.

Reply via email to