From 58fd1ed486ccce4f5dab3d0d985d1727a916d2f3 Mon Sep 17 00:00:00 2001 From: Sergey Matveychuk Date: Tue, 21 Jul 2009 20:09:17 +0000 Subject: - A workaround for a null string problem with -R option Submitted by: John Rumsey --- ports-mgmt/portupgrade/Makefile | 2 +- ports-mgmt/portupgrade/files/patch-bin-portupgrade | 24 ++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 ports-mgmt/portupgrade/files/patch-bin-portupgrade (limited to 'ports-mgmt') diff --git a/ports-mgmt/portupgrade/Makefile b/ports-mgmt/portupgrade/Makefile index b18a51061e32..2d941fe5495c 100644 --- a/ports-mgmt/portupgrade/Makefile +++ b/ports-mgmt/portupgrade/Makefile @@ -7,7 +7,7 @@ PORTNAME= portupgrade PORTVERSION= 2.4.6 -PORTREVISION= 2 +PORTREVISION= 3 PORTEPOCH= 2 CATEGORIES= ports-mgmt MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} diff --git a/ports-mgmt/portupgrade/files/patch-bin-portupgrade b/ports-mgmt/portupgrade/files/patch-bin-portupgrade new file mode 100644 index 000000000000..9a4fd6564b1b --- /dev/null +++ b/ports-mgmt/portupgrade/files/patch-bin-portupgrade @@ -0,0 +1,24 @@ +--- bin/portupgrade.orig 2009-07-21 23:59:59.000000000 +0400 ++++ bin/portupgrade 2009-07-22 00:02:08.000000000 +0400 +@@ -597,6 +597,7 @@ + exit 1 + end + ++ list -= [''] + list.each do |i| + if i == first + $task_options[i][:origin] = $origin +@@ -654,12 +655,12 @@ + upgrade_tasks -= not_need_upgrade + + # Check dependencies for updates ++ depends -= [''] + if $upward_recursive + STDERR.print '[Exclude up-to-date packages ' + not_need_upgrade = [] + depends.each do |task| + STDERR.print '.' +- next if task == '' + begin + pkg = PkgInfo.new(task) + rescue ArgumentError => e -- cgit v1.2.3