svn commit: r220122 - user/dougb/portmaster
Doug Barton
dougb at FreeBSD.org
Tue Mar 29 03:42:48 UTC 2011
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
More information about the svn-src-user
mailing list