Opened 14 years ago

Closed 12 years ago

Last modified 12 years ago

#463 closed enhancement (fixed)

[with patch; positive review] sage -upgrade: "sage -upgrade URL" will install all *newer* spkg's from the given URL, which can also be a local directory

Reported by: was Owned by: was
Priority: major Milestone: sage-3.2.1
Component: packages: standard Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

[12:25] <william> interesting feature idea:
[12:25] <william> extend the "sage -upgrade" command so you an give the directory or URL
[12:26] <william> of any other installed version of SAGE, and it will pull everything from there.
[12:26] <william> install any newer spkg's and pull from any active repo.
[12:26] <malb> definitely nice for sysadmins I guess

Attachments (6)

sage-463.patch (793 bytes) - added by was 12 years ago.
somewhat orthogonal -- changes to use "sage -br" instead of "sage -ba" on upgrade. apply to sage repo.
scripts-463.patch (13.1 KB) - added by was 12 years ago.
apply to the scripts repo.
scripts-463-rebase-3.1.alpha1.patch (11.7 KB) - added by was 12 years ago.
scripts-463-rebase-3.2.1.alpha1-part2.patch (1.6 KB) - added by was 12 years ago.
scripts-463-part3.patch (890 bytes) - added by was 12 years ago.
sage-463-part2.patch (699 bytes) - added by was 12 years ago.

Download all attachments as: .zip

Change History (14)

comment:1 Changed 14 years ago by mabshoff

  • Milestone set to Sage-2.10

comment:2 Changed 12 years ago by was

  • Summary changed from sage -upgrade: make it more flexible to sage -upgrade: "sage -upgrade URL" will install all *newer* spkg's from the given URL, which can also be a local directory

Changed 12 years ago by was

somewhat orthogonal -- changes to use "sage -br" instead of "sage -ba" on upgrade. apply to sage repo.

Changed 12 years ago by was

apply to the scripts repo.

comment:3 Changed 12 years ago by was

  • Summary changed from sage -upgrade: "sage -upgrade URL" will install all *newer* spkg's from the given URL, which can also be a local directory to [with patch; needs review] sage -upgrade: "sage -upgrade URL" will install all *newer* spkg's from the given URL, which can also be a local directory

To test this out try:

On an older sage install

sage -upgrade  # should do a standard upgrade to the latest version of sage

On a new sage install

sage -upgrade http://sage.math.washington.edu/home/was/build/sage-3.2.1.alpha1

to upgrade to the latest devel version.

Changed 12 years ago by was

comment:4 Changed 12 years ago by was

Apply these to 3.2.1.alpha1:

sage-463.patch 
scripts-463-rebase-3.1.alpha1.patch 
scripts-463-rebase-3.2.1.alpha1-part2.patch 

comment:5 Changed 12 years ago by mabshoff

  • Summary changed from [with patch; needs review] sage -upgrade: "sage -upgrade URL" will install all *newer* spkg's from the given URL, which can also be a local directory to [with patch; positive review] sage -upgrade: "sage -upgrade URL" will install all *newer* spkg's from the given URL, which can also be a local directory

The three patches listed above look good to me.

As William pointed out in IRC one can downgrade in which case a whole set of spkgs will be downloaded and then nothing is installed, but I am fine with that behavior. That might be fixed via some future ticket, but I don't think we should support downgrading.

Cheers,

Michael

comment:6 Changed 12 years ago by mabshoff

  • Resolution set to fixed
  • Status changed from new to closed

Merged in Sage 3.2.1.alpha2

Changed 12 years ago by was

Changed 12 years ago by was

comment:7 Changed 12 years ago by mabshoff

Merged scripts-463-part3.patch and sage-463-part2.patch in Sage 3.2.1.alpah2

comment:8 Changed 12 years ago by mabshoff

And we merged on more fix: turn -br into -b

Cheers,

Michael

Note: See TracTickets for help on using tickets.