- Fix a crash that caused sometimes when -R option specified.

Reported by:	pav
This commit is contained in:
Sergey Matveychuk 2008-02-11 13:50:27 +00:00
parent ede1cdbc59
commit bb9070e754
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=207020
2 changed files with 14 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= portupgrade
PORTVERSION= 2.4.3
PORTREVISION= 1
PORTEPOCH= 2
CATEGORIES= ports-mgmt
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}

View File

@ -0,0 +1,13 @@
--- bin/portupgrade.orig 2008-02-11 13:37:36.000000000 +0300
+++ bin/portupgrade 2008-02-11 16:07:28.000000000 +0300
@@ -656,8 +656,10 @@
if $upward_recursive
STDERR.print '[Exclude up-to-date packages '
not_need_upgrade = []
+ not_need_upgrade << ''
depends.each do |task|
STDERR.print '.'
+ next if task == ''
pkg = PkgInfo.new(task)
origin = $pkgdb.origin(task)
if !origin.nil?