[MacPorts] #33820: base: add ui_msg to output outdated ports during selfupdate
#33820: base: add ui_msg to output outdated ports during selfupdate -------------------------------------------+-------------------------------- Reporter: sean.michael.farley@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: base | Version: 2.0.4 Keywords: | Port: -------------------------------------------+-------------------------------- This is a small tweak to macports base that will output the outdated ports after showing the message: "The ports tree has been updated. To upgrade your installed ports, you should run port upgrade outdated" -- Ticket URL: <https://trac.macports.org/ticket/33820> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33820: base: add ui_msg to output outdated ports during selfupdate -------------------------------------------+-------------------------------- Reporter: sean.michael.farley@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: base | Version: 2.0.4 Keywords: haspatch | Port: -------------------------------------------+-------------------------------- Changes (by ryandesign@…): * keywords: => haspatch -- Ticket URL: <https://trac.macports.org/ticket/33820#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33820: base: add ui_msg to output outdated ports during selfupdate ------------------------------------+-------------------------------- Reporter: sean.michael.farley@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: base | Version: 2.0.4 Resolution: | Keywords: haspatch Port: | ------------------------------------+-------------------------------- Comment (by egall@…): This should probably only be printed when the verbosity level is at least the `-v` flag or higher. -- Ticket URL: <https://trac.macports.org/ticket/33820#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33820: base: add ui_msg to output outdated ports during selfupdate ------------------------------------+-------------------------------- Reporter: sean.michael.farley@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: base | Version: 2.0.4 Resolution: | Keywords: haspatch Port: | ------------------------------------+-------------------------------- Changes (by raimue@…): * cc: raimue@… (added) Comment: In my opinion, I don't think it's necessary to list outdated ports on selfupdate. Anyway, on technical details, using `exec` is not the right choice here. The package macports1.0 is meant as a library to be used by different clients, most notable port/port.tcl and the MacPorts.framework for GUI applications. We cannot always expect `port` to be in PATH for GUI applications, so at least it would have to be `${prefix}/bin/port`. It would make more sense to add such a message within the port cli client, as a GUI client has other options to present outdated ports than plain text messages. Additionally, the behavior and output from selfupdate and sync should be consistent. -- Ticket URL: <https://trac.macports.org/ticket/33820#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33820: base: add ui_msg to output outdated ports during selfupdate ------------------------------------+-------------------------------- Reporter: sean.michael.farley@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: base | Version: 2.0.4 Resolution: | Keywords: haspatch Port: | ------------------------------------+-------------------------------- Comment (by sean@…): Replying to [comment:4 raimue@…]:
In my opinion, I don't think it's necessary to list outdated ports on self update.
I dunno; I could see it either way. On one hand, it's nice to have a list of outdated ports after running `port sync` or `port selfupdate`.
Anyway, on technical details, using `exec` is not the right choice here. The package macports1.0 is meant as a library to be used by different clients, most notable port/port.tcl and the MacPorts.framework for GUI applications. We cannot always expect `port` to be in PATH for GUI applications, so at least it would have to be `${prefix}/bin/port`. It would make more sense to add such a message within the port cli client, as a GUI client has other options to present outdated ports than plain text messages. Additionally, the behavior and output from selfupdate and sync should be consistent.
Very true; this patch was mostly meant as a proof-of-concept. -- Ticket URL: <https://trac.macports.org/ticket/33820#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts