port upgrade when port is not installed
Daniel J. Luke
dluke at geeklair.net
Wed Jul 2 08:59:59 PDT 2008
On Jun 30, 2008, at 2:27 AM, Ryan Schmidt wrote:
> It built and installed wget, then built it again, then tried to
> uninstall the old version which was never installed in the first
> place. If port upgrade is going to break if a port is not already
> installed, it should fail right at the very beginning with a clear
> message telling the user to use port install. Alternately, port
> upgrade could become a synonym for port install if the port is not
> already installed.
I think this only happened because of the -u
(ie. if you did port -nf upgrade wget && port -f uninstall inactive
things would work the way you expect).
It's been a while since I looked at the upgrade code, though, so
things could have changed.
... but you're right, it's unexpected behavior and probably should be
fixed.
--
Daniel J. Luke
+========================================================+
| *---------------- dluke at geeklair.net ----------------* |
| *-------------- http://www.geeklair.net -------------* |
+========================================================+
| Opinions expressed are mine and do not necessarily |
| reflect the opinions of my employer. |
+========================================================+
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
Url : http://lists.macosforge.org/pipermail/macports-dev/attachments/20080702/a5d9d449/attachment.bin
More information about the macports-dev
mailing list