[MacPorts] #27244: base: action to show disk space used by an active port
#27244: base: action to show disk space used by an active port --------------------------------+------------------------------------------- Reporter: ww.galen@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: base | Version: 1.9.2 Keywords: | Port: --------------------------------+------------------------------------------- I propose to add an action named "space" to show the disk space used by installed files in an active port. Similar information is available by running the command "`du -sk /opt/local/var/macports/software/<port name>`", but an action is a little handier. The total doesn't include any files used to create or keep track of the port, such as those in /opt/local/var/macports/{receipts,sources}. The patch adds support for this action, as well as options that specify the default units for sizes: -K for KiB, -M for MiB, -B for bytes. These options are applicable to other (such as another proposed feature of mine to include file sizes when listing port contents), which is why they are global options rather than action flags. Another possible option (-H) would say to make the sizes human readable (i.e. autoscaled), picking the unit that best matches the value magnitude. As this should be the default behavior, I've left out this option for now. Example usage: {{{ $ port space autoconf gawk zip 2.960 MiB autoconf 5.038 MiB gawk 800.381 KiB zip 8.779 MiB total }}} -- Ticket URL: <https://trac.macports.org/ticket/27244> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27244: base: action to show disk space used by an active port --------------------------------+------------------------------------------- Reporter: ww.galen@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: base | Version: 1.9.2 Keywords: | Port: --------------------------------+------------------------------------------- Comment(by ww.galen@…): The other proposed enhancement that uses the "-[BKM]" options is ticket #27245. -- Ticket URL: <https://trac.macports.org/ticket/27244#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27244: base: action to show disk space used by an active port --------------------------------+------------------------------------------- Reporter: ww.galen@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: MacPorts 2.0.0 Component: base | Version: 1.9.2 Keywords: | Port: --------------------------------+------------------------------------------- Changes (by jmr@…): * milestone: => MacPorts 2.0.0 -- Ticket URL: <https://trac.macports.org/ticket/27244#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27244: base: action to show disk space used by an active port ---------------------------------+------------------------------------------ Reporter: ww.galen@… | Owner: macports-tickets@… Type: enhancement | Status: closed Priority: Normal | Milestone: MacPorts 2.0.0 Component: base | Version: 1.9.2 Resolution: fixed | Keywords: Port: | ---------------------------------+------------------------------------------ Changes (by jmr@…): * status: new => closed * resolution: => fixed Comment: r79349 -- Ticket URL: <https://trac.macports.org/ticket/27244#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts