From owner-freebsd-stable Mon May 13 11:56: 0 2002 Delivered-To: freebsd-stable@freebsd.org Received: from postal1.es.net (postal1.es.net [198.128.3.205]) by hub.freebsd.org (Postfix) with ESMTP id D7E6037B407; Mon, 13 May 2002 11:55:49 -0700 (PDT) Received: from ptavv.es.net ([198.128.4.29]) by postal1.es.net (Postal Node 1) with ESMTP id GQF37091; Mon, 13 May 2002 11:55:48 -0700 Received: from ptavv (localhost [127.0.0.1]) by ptavv.es.net (Postfix) with ESMTP id 0B6545D06; Mon, 13 May 2002 11:55:48 -0700 (PDT) To: Chris Dempsey Cc: freebsd-ports@freebsd.org, freebsd-stable@freebsd.org, knu@freebsd.org Subject: Re: Error in Portupgrade In-reply-to: Your message of "Mon, 13 May 2002 11:20:59 PDT." <20020513182059.28142.qmail@web13405.mail.yahoo.com> Date: Mon, 13 May 2002 11:55:48 -0700 From: "Kevin Oberman" Message-Id: <20020513185548.0B6545D06@ptavv.es.net> Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > Date: Mon, 13 May 2002 11:20:59 -0700 (PDT) > From: Chris Dempsey > Sender: owner-freebsd-stable@FreeBSD.ORG > > I rm -rf /usr/ports/sysutils/portupgrade, cvsup'd, and > successfully make install clean portupgrade. > > portupgrade-20020429 = up-to-date with port > > Problem is, when I use it, I get: > > usr/ports/sysutils/portupgrade # portupgrade -a > ** Error occured reading /usr/local/etc/pkgtools.conf: > undefined method `+' for nil > > When I run: > /usr/local/bin/ruby /usr/local/etc/pkgtools.conf > /usr/local/etc/pkgtools.conf:89: undefined method `+' > for nil (NameError) Edit /usr/local/etc/pkgtools.conf to: @@ -86,6 +86,8 @@ # ENV['PKG_FETCH'] = 'false' # never fetch packages from a remote site # ENV['PACKAGEROOT'] = 'ftp://ftpN.XX.FreeBSD.org' + ENV['PORTSDIR'] ||= '/usr/ports' + ENV['PACKAGES'] ||= ENV['PORTSDIR'] + '/packages' ENV['PKG_PATH'] ||= ENV['PACKAGES'] + '/All' # SANITY_CHECK: boolean (default: true) You can see this in pgktools.conf.sample. R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message