base: 'port uninstall' ignores subport when using 'current'

Ryan Schmidt ryandesign at macports.org
Sun Jul 28 11:26:48 PDT 2013


On Jul 28, 2013, at 09:52, Bradley Giesbrecht wrote:

> Is this intended?
> 
> $ cd $(port dir qt4-mac-mysql55-plugin)
> $ for mysql in mysql5 mysql51 mysql55 mariadb percona ; do sudo port -dy uninstall subport=qt4-mac-${mysql}-plugin 2>/dev/null ; done
> qt4-mac-mysql55-plugin is already uninstalled
> qt4-mac-mysql55-plugin is already uninstalled
> qt4-mac-mysql55-plugin is already uninstalled
> qt4-mac-mysql55-plugin is already uninstalled
> qt4-mac-mysql55-plugin is already uninstalled
> $

I've noticed that too but you can just install them by name:

$ cd $(port dir qt4-mac-mysql55-plugin)
$ for mysql in mysql5 mysql51 mysql55 mariadb percona ; do sudo port -dy uninstall qt4-mac-${mysql}-plugin 2>/dev/null ; done

You can also use the "subportof:" pseudoport:

$ sudo port -dy uninstall subportof:qt4-mac-mysql55-plugin

But that doesn't get the main port, which in this case you probably want, so you'd need to list it too:

$ sudo port -dy uninstall {subportof:,}qt4-mac-mysql55-plugin



More information about the macports-dev mailing list