#18993: sage-list-packages should ignore files in build/pkgs/
-------------------------------------+-------------------------------------
   Reporter:  jkeitel                |            Owner:
       Type:  defect                 |           Status:  new
   Priority:  minor                  |        Milestone:  sage-6.9
  Component:  spkg-check             |         Keywords:
  Merged in:                         |          Authors:  Jan Keitel
  Reviewers:                         |  Report Upstream:  N/A
Work issues:                         |           Branch:  u/jkeitel/sage-
     Commit:                         |  list-packages
  68e5d145936af69ea63cdd9a01d42c38bb0306d0|     Dependencies:
   Stopgaps:                         |
-------------------------------------+-------------------------------------
 At the moment, {{{sage-list-packages}}} does not ignore files in
 {{{build/pkgs}}}, which can lead to errors if, say, your browser has
 automatically created a file after viewing this folder:

 {{{
 jkeitel@pcl337b:~/sage/sage_optional> ./sage -optional
 Traceback (most recent call last):
   File "/home/pcl337b/jkeitel/sage/sage_optional/src/bin/sage-list-
 packages", line 57, in <module>
     with open(os.path.join(SAGE_PKGS, p, "package-version.txt")) as f:
 IOError: [Errno 20] Not a directory:
 '/home/pcl337b/jkeitel/sage/sage_optional/build/pkgs/.directory/package-
 version.txt'
 }}}

 I am attaching a simple patch that ignores files and only checks folders.

--
Ticket URL: <http://trac.sagemath.org/ticket/18993>
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to