Opened 6 years ago

Closed 6 months ago

Last modified 4 months ago

#55085 closed enhancement (fixed)

Trying to install a port which is already installed should mark it as requested.

Reported by: paulp (Paul Phillips) Owned by: jmroot (Joshua Root)
Priority: Normal Milestone: MacPorts 2.9.0
Component: base Version:
Keywords: Cc: cooljeanius (Eric Gallager)
Port:

Description

% port installed requested | ag ansifilter
% port install ansifilter
--->  Cleaning ansifilter
--->  Scanning binaries for linking errors
--->  No broken files found.
% port installed requested | ag ansifilter
%

And yet:

% port uninstall ansifilter
--->  Deactivating ansifilter @2.8.1_0
--->  Cleaning ansifilter
--->  Uninstalling ansifilter @2.8.1_0
--->  Cleaning ansifilter
% port install ansifilter
--->  Fetching archive for ansifilter [...]
% port installed requested | ag ansifilter
  ansifilter @2.8.1_0 (active)
%

Surely the port has been requested exactly as seriously in the case where it turned out already to have been installed as a dependency of something else. More so, since I apparently want it so much I didn't have time to notice I already had it.

This makes the same installations on different machines have context dependent results - where my lists of requested ports should match, they do not. I realize I can manually setrequested each time, but I am one of those unfortunate people who suffers terribly under mental burdens such as these.

As an aside, on the theory that setunrequested being an alias for unsetrequested sets a pretty low bar for alias urgency, perhaps we could trim port installed requested down to port requested. The ability to distinguish requested ports from incidental dependencies is in my estimation the biggest advantage of macports over homebrew, and it would be even more so with a new coat of paint. Burying it as a postfix adjective doesn't show it off to best advantage. Especially since they probably found it by typing port list requested and being instructed they should have typed a different command, while it slooooooowly generates approximately the same output.

Change History (6)

comment:1 in reply to:  description Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to paulp:

Surely the port has been requested exactly as seriously in the case where it turned out already to have been installed as a dependency of something else.

I could agree with that.

perhaps we could trim port installed requested down to port requested.

This deserves its own ticket, so I'll reply there: #55089

comment:2 Changed 6 years ago by mf2k (Frank Schima)

Keywords: installed requested setrequested removed
Version: 2.4.1

comment:3 Changed 6 months ago by jmroot (Joshua Root)

Owner: set to jmroot
Resolution: fixed
Status: newclosed

In 7ed853d1783ca9a39f055a7d55b657dfce1dc883/macports-base (master):

Set requested flag even if already installed

Closes: #55085

comment:4 Changed 6 months ago by jmroot (Joshua Root)

Milestone: MacPorts Future

comment:5 Changed 5 months ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added

comment:6 Changed 4 months ago by jmroot (Joshua Root)

Milestone: MacPorts FutureMacPorts 2.9.0
Note: See TracTickets for help on using tickets.