Date: Tue, 29 Mar 2011 03:42:47 +0000 (UTC) From: Doug Barton <dougb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r220122 - user/dougb/portmaster Message-ID: <201103290342.p2T3glCh015709@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dougb Date: Tue Mar 29 03:42:47 2011 New Revision: 220122 URL: http://svn.freebsd.org/changeset/base/220122 Log: Handle ports specified by origin for --update-if-newer Modified: user/dougb/portmaster/portmaster Modified: user/dougb/portmaster/portmaster ============================================================================== --- user/dougb/portmaster/portmaster Tue Mar 29 01:17:30 2011 (r220121) +++ user/dougb/portmaster/portmaster Tue Mar 29 03:42:47 2011 (r220122) @@ -2599,7 +2599,7 @@ multiport () { # Global PM_MULTI_PORTS=':' ; export PM_MULTI_PORTS - local port worklist_temp worklist portlist numports origin num + local port worklist_temp iport worklist portlist numports origin num # Expand globs and check that the directories exist for port in "$@"; do @@ -2632,12 +2632,19 @@ multiport () { check_interactive $port || continue if [ -n "$PM_UPDATE_IF_NEWER" ]; then - if check_for_updates multi $port; then - if [ -n "$PM_VERBOSE" ]; then - echo '' - echo "===>>> $port is up to date, skipping" + case "$port" in + */*) iport=`iport_from_origin $port` ;; + *) iport=$port ;; + esac + + if [ -n "$iport" ]; then + if check_for_updates multi $port; then + if [ -n "$PM_VERBOSE" ]; then + echo '' + echo "===>>> $port is up to date, skipping" + fi + continue fi - continue fi fi
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103290342.p2T3glCh015709>