#5825: sage -i $FOO.spkg should abort cleanly when write permissions are lacking
----------------------------------+-----------------------------------------
       Reporter:  mabshoff        |         Owner:  mabshoff    
           Type:  defect          |        Status:  needs_review
       Priority:  major           |     Milestone:  sage-5.10   
      Component:  scripts         |    Resolution:              
       Keywords:                  |   Work issues:              
Report Upstream:  N/A             |     Reviewers:              
        Authors:  Jeroen Demeyer  |     Merged in:              
   Dependencies:                  |      Stopgaps:              
----------------------------------+-----------------------------------------

Comment (by jhpalmieri):

 Is it worth checking permissions before attempting to download an spkg?
 {{{
 $ sage -i pybtex
 tee:
 
/Users/palmieri/Desktop/Sage_stuff/sage_builds/sage-5.10.beta4/logs/install.log:
 Permission denied
 tee:
 
/Users/palmieri/Desktop/Sage_stuff/sage_builds/sage-5.10.beta4/logs/pkgs/pybtex.log:
 Permission denied
 Attempting to download package pybtex
 >>> Checking online list of optional packages.
 [.]
 >>> Found pybtex-20120618
 >>> Downloading
 http://www.sagemath.org/spkg/optional/pybtex-20120618.spkg.
 /Users/palmieri/Desktop/Sage_stuff/sage_builds/sage-5.10.beta4/spkg/bin
 /sage-spkg: line 354: pybtex-20120618.tmp: Permission denied
 Error: failed to download package pybtex-20120618
 }}}
 This is not as nice an error message as you added in other situations:
 {{{
 $ sage -f gcc
 tee:
 
/Users/palmieri/Desktop/Sage_stuff/sage_builds/sage-5.10.beta4/logs/install.log:
 Permission denied
 tee:
 
/Users/palmieri/Desktop/Sage_stuff/sage_builds/sage-5.10.beta4/logs/pkgs/gcc.log:
 Permission denied
 Found package gcc in spkg/standard/gcc-4.7.3.p0.spkg
 Error: no write access to build directory
 /Users/palmieri/Desktop/Sage_stuff/sage_builds/sage-5.10.beta4/spkg/build.
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5825#comment:2>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to