Changeset 18971 for trunk/base


Ignore:
Timestamp:
Jul 31, 2006, 10:40:05 PM (14 years ago)
Author:
pguyot (Paul Guyot)
Message:

Fixed a bug where port upgrade -uf would stupidly fail on a non-installed port.
I wish I could exit and say: "sorry, this port isn't installed, why do you want
to upgrade it?", but the upgrade code is so ugly that this would break it up.

So the current fix prevents a failure but please note that port upgrade -uf will
result in building and installing the port twice.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/darwinports1.0/darwinports.tcl

    r18822 r18971  
    11# darwinports.tcl
    2 # $Id: darwinports.tcl,v 1.217 2006/07/30 18:48:50 jmpp Exp $
     2# $Id: darwinports.tcl,v 1.218 2006/07/31 22:40:05 pguyot Exp $
    33#
    44# Copyright (c) 2002 Apple Computer, Inc.
     
    15221522                # XXX  this sets $version_installed to $version_in_tree even if not installed!!
    15231523                set version_installed $version_in_tree
     1524                # That was a very dirty hack showing how ugly our depencendy and upgrade code is.
     1525                # To get it working when user provides -f, we also need to set the variant to
     1526                # avoid a future failure.
     1527                set variant ""
    15241528        } else {
    15251529                # a port could be installed but not activated
Note: See TracChangeset for help on using the changeset viewer.