php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24298 list-upgrades to show more info (feature request)
Submitted: 2003-06-23 11:29 UTC Modified: 2003-06-30 08:14 UTC
From: philip at cornado dot com Assigned:
Status: Closed Package: PEAR related
PHP Version: 4.3.3RC1 OS: linux
Private report: No CVE-ID: None
 [2003-06-23 11:29 UTC] philip at cornado dot com
Description:
------------
This is a feature request for the list-upgrades command to list more information:

(a) Currently installed version:
  This way I'll know exactly what's going on, what version
  will be upgraded, and what version it will be upgraded to.
  list-all provides this information.

(b) List both beta and stable versions (maybe alpha too):
  Regardless of preferred_state, if both stable and beta 
  versions are shown, I'll know exactly what's going on and 
  might choose beta over stable, or vice versa.

  Also, currently upgrades aren't listed as stable or beta
  while this information would be nice.  If my
  preferred_state is beta, I'd like to know if I'm about to
  upgrade to a beta or stable... same goes with alpha.

I believe both (a) and (b) are worthy features and will let the user know exactly what's going on, and make reading the package changelog that much more useful.

Lastly, (b) is a little tricky to output but I attempted to create a version below, and some of the information (version numbers and sizes) are made up.


Reproduce code:
---------------
// Assuming preferred_state = beta
pear list-upgrades

// Assuming preferred_state = stable
pear list-upgrades

Expected result:
----------------
Available Upgrades (preferred_state = beta):
============================================
Package       Beta*    Stable   Local    Size
DB            1.5.0RC1 1.4.0    1.2.0    65kB
PEAR_Info              1.0.6    1.0.5    6.2kB
PhpDocumentor          1.2.0    1.1.0    2410kB

Available Upgrades (preferred_state = stable):
==============================================
Package       Beta     Stable*  Local    Size
DB            1.5.0RC1 1.4.0    1.2.0    59kB
PEAR_Info              1.0.6    1.0.5    6.2kB
PhpDocumentor          1.2.0    1.1.0    2410kB


Actual result:
--------------
Available Upgrades (beta):
==========================
Package       Version  Size
DB            1.5.0RC1 65kB
PEAR_Info     1.0.6    6.2kB
PhpDocumentor 1.2.0    2410kB

Available Upgrades (stable):
============================
Package       Version  Size
DB            1.4.0    59kB
PEAR_Info     1.0.6    6.2kB
PhpDocumentor 1.2.0    2410kB

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-30 08:14 UTC] cox@php.net
For the moment I've added the 'Local' version info in list-upgrades. We will discuss in the future what other info we would like to show.

Thanks for the feedback!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Nov 24 16:01:31 2024 UTC