#12606 closed defect (fixed)
Fix sage info <package>
Reported by:  jdemeyer  Owned by:  leif 

Priority:  minor  Milestone:  sage5.4 
Component:  scripts  Keywords:  
Cc:  jhpalmieri  Merged in:  sage5.4.beta0 
Authors:  Jeroen Demeyer  Reviewers:  John Palmieri 
Report Upstream:  N/A  Work issues:  
Branch:  Commit:  
Dependencies:  Stopgaps: 
Description (last modified by )
Doing
./sage info mpir
should show the SPKG.txt
of the mpir spkg.
Apply:
 12606sageinfo.patch to the
SAGE_ROOT
repository.  12606_test_and_document_info.patch to the Sage library.
Attachments (2)
Change History (9)
comment:1 Changed 10 years ago by
 Cc jhpalmieri added
 Description modified (diff)
 Status changed from new to needs_review
Changed 10 years ago by
Changed 10 years ago by
comment:2 Changed 10 years ago by
 Reviewers set to John Palmieri
 Status changed from needs_review to positive_review
comment:3 Changed 10 years ago by
 Milestone changed from sage5.3 to sage5.4
comment:4 Changed 10 years ago by
 Merged in set to sage5.4.beta0
 Resolution set to fixed
 Status changed from positive_review to closed
comment:5 Changed 10 years ago by
Followup: #13497 (Disable sage info test for bdists)
comment:6 followup: ↓ 7 Changed 10 years ago by
What would you think of a patch like this:

spkg/bin/sage
diff git a/spkg/bin/sage b/spkg/bin/sage
a b install() { 919 919 PKG_NAME=`echo "$PKG"  sed e "s/\.spkg$//"` 920 920 PKG_NAME=`basename "$PKG_NAME"` 921 921 922 "$SAGE_ROOT"/spkg/pipestatus \ 923 "sagespkg $OPTINFO $OPTF $OPTS $OPTC '$PKG' 2>&1" \ 924 "(trap '' SIGINT; tee a '$SAGE_ROOT/install.log' '$SAGE_LOGS/$PKG_NAME.log')" 922 if [ n $OPTINFO ]; then 923 sagespkg "$OPTINFO" "$PKG" 2>&1 924 else 925 "$SAGE_ROOT"/spkg/pipestatus \ 926 "sagespkg $OPTINFO $OPTF $OPTS $OPTC '$PKG' 2>&1" \ 927 "(trap '' SIGINT; tee a '$SAGE_ROOT/install.log' '$SAGE_LOGS/$PKG_NAME.log')" 928 fi 925 929 # Do not try to install further packages if one failed 926 930 if [ $? ne 0 ]; then 927 931 exit 1
(Or we can run sagespkg info "$PKG"
for two cases in the case
block.) Basically, I don't think that running sage info foo
should produce a file spkg/logs/foo.log
.
comment:7 in reply to: ↑ 6 Changed 10 years ago by
Replying to jhpalmieri:
Basically, I don't think that running
sage info foo
should produce a filespkg/logs/foo.log
.
I agree, I already made a change like this for #5155.
Note: See
TracTickets for help on using
tickets.
Looks good to me.