Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Dec 2005 15:25:03 +0000
From:      Daniel Bye <freebsd-questions@slightlystrange.org>
To:        questions@freebsd.org
Subject:   pkgtools-to-portmanager.rb
Message-ID:  <20051203152503.GC35163@catflap.slightlystrange.org>

next in thread | raw e-mail | index | archive | help

--/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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051203152503.GC35163>