From owner-freebsd-questions@FreeBSD.ORG Sat Dec 3 15:25:05 2005 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BED3516A41F for ; Sat, 3 Dec 2005 15:25:05 +0000 (GMT) (envelope-from danielby@slightlystrange.org) Received: from catflap.slightlystrange.org (cpc1-cmbg1-3-0-cust61.cmbg.cable.ntl.com [62.253.132.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B16143D46 for ; Sat, 3 Dec 2005 15:25:05 +0000 (GMT) (envelope-from danielby@slightlystrange.org) Received: from danielby by catflap.slightlystrange.org with local (Exim 4.60 #0) id 1EiZG3-0006Tv-Q0 by authid for ; Sat, 03 Dec 2005 15:25:03 +0000 Date: Sat, 3 Dec 2005 15:25:03 +0000 From: Daniel Bye To: questions@freebsd.org Message-ID: <20051203152503.GC35163@catflap.slightlystrange.org> Mail-Followup-To: questions@freebsd.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/Uq4LBwYP4y1W6pO" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: danielby@slightlystrange.org X-SA-Exim-Scanned: No (on catflap.slightlystrange.org); SAEximRunCond expanded to false Cc: Subject: pkgtools-to-portmanager.rb X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Bye List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Dec 2005 15:25:05 -0000 --/Uq4LBwYP4y1W6pO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, Anyone else seen something like this using portmanager lately? ---># portmanager -s | grep OLD /usr/local/share/portmanager/pkgtools-to-portmanager.rb:72:in `+': cannot convert Array into String (TypeError) from /usr/local/share/portmanager/pkgtools-to-portmanager.rb:72 from /usr/local/share/portmanager/pkgtools-to-portmanager.rb:70:in `each' from /usr/local/share/portmanager/pkgtools-to-portmanager.rb:70 /usr/local/share/portmanager/pkgtools-to-portmanager.rb:72:in `+': cannot convert Array into String (TypeError) from /usr/local/share/portmanager/pkgtools-to-portmanager.rb:72 from /usr/local/share/portmanager/pkgtools-to-portmanager.rb:70:in `each' from /usr/local/share/portmanager/pkgtools-to-portmanager.rb:70 I checked the archives and no-one seems to have mentioned it, but heh, I can't be the only one, can I..? ;-) The following patch seems to fix it, anyways. +---- patch starts --- pkgtools-to-portmanager.rb Sat Dec 3 14:49:24 2005 +++ pkgtools-to-portmanager_fixed.rb Sat Dec 3 14:51:09 2005 @@ -57,7 +57,7 @@ =20 config_value(:BEFOREBUILD).each do |pkg| =20 - puts "STOP|/" + pkg[0] + " " + pkg[1] + "|" + puts "STOP|/" + pkg[0] + " " + "#{pkg[1]}" + "|" =20 end =20 @@ -69,7 +69,7 @@ =20 config_value(:AFTERINSTALL).each do |pkg| =20 - puts "START|/" + pkg[0] + " " + pkg[1] + "|" + puts "START|/" + pkg[0] + " " + "#{pkg[1]}" + "|" =20 end =20 @@ -86,6 +86,6 @@ ##mcs mod## # puts pkg[0] + "|" + pkg[1] + "|" # - puts pkg[0] + "|" + pkg[1] + " " + "|" + puts pkg[0] + "|" + "#{pkg[1]}" + " " + "|" =20 end +---- patch ends Cheers, Dan --=20 Daniel Bye PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc PGP Key fingerprint: 3B9D 8BBB EB03 BA83 5DB4 3B88 86FC F03A 90A1 BE8F _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ --/Uq4LBwYP4y1W6pO Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDkbjPhvzwOpChvo8RAkzWAJ9KtbmkXh0DsiiyeyDGnIsMXqcy1ACg0ltx gE+9ZHm03BOFWUZei0vWYqE= =Olk+ -----END PGP SIGNATURE----- --/Uq4LBwYP4y1W6pO--