#19487: Support .zip upstream/ files
-------------------------+-------------------------------------------------
       Reporter:         |        Owner:
  ncohen                 |       Status:  needs_work
           Type:         |    Milestone:  sage-7.0
  enhancement            |   Resolution:
       Priority:  major  |    Merged in:
      Component:         |    Reviewers:  Dima Pasechnik, Matthias Koeppe
  distribution           |  Work issues:
       Keywords:         |       Commit:
        Authors:         |  81b0e6304a5f6374bcaf84481e07f66c1bf26d29
  Nathann Cohen          |     Stopgaps:
Report Upstream:  N/A    |
         Branch:         |
  public/19487           |
   Dependencies:         |
  #19484                 |
-------------------------+-------------------------------------------------

Comment (by dimpase):

 if seems to work if I apply
 {{{
 diff --git a/src/bin/sage-fix-pkg-checksums b/src/bin/sage-fix-pkg-
 checksums
 index 149f68f..f16fab7 100755
 --- a/src/bin/sage-fix-pkg-checksums
 +++ b/src/bin/sage-fix-pkg-checksums
 @@ -14,7 +14,7 @@ do
      pkg_name=${tarball%%-*}
      # Convert to lowercase for the directory name:
      pkg_name_lc=`echo $pkg_name | tr '[:upper:]' '[:lower:]'`
 -    extension=$(echo $tarball | grep -o -E "(.tar|.gz|.zip)*$") # file
 extension (.tar,.tar.gz,.zip)
 +    extension=$(echo $tarball | grep -o -E "(.tar|.gz|.bz2|.zip)*$") #
 file extension (.tar,.tar.gz,.zip)
      if [ -d "$SAGE_ROOT/build/pkgs/$pkg_name_lc" ]; then
          sage_version=`cat "$SAGE_ROOT/build/pkgs/$pkg_name_lc/package-
 version.txt" | sed 's/\.p[0-9][0-9]*$//'`
          if [ ${tarball%$extension*} = "$pkg_name-$sage_version" ]; then
 }}}

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

Reply via email to