[PATCH] portupgrade, get_all_depends method crashes
Stanislav Sedov
stas at FreeBSD.org
Mon Dec 21 22:22:26 UTC 2009
On Sun, 20 Dec 2009 12:12:44 +0900
"KISHIMOTO, Makoto" <ksmakoto at dd.iij4u.or.jp> mentioned:
> Hello,
>
> In portupgrade, get_all_depends method crashes if portdir not found.
> (for example http://www.freebsd.org/cgi/query-pr.cgi?pr=140192 )
>
> following patch is workaround.
>
> --- portupgrade.ORG 2009-12-20 10:11:00.000000000 +0900
> +++ portupgrade 2009-12-20 10:16:10.000000000 +0900
> @@ -834,7 +834,7 @@
> depends = Set.new
>
> portdir = $portsdb.portdir(origin)
> - return nil if not File.directory?(portdir)
> + return [] if not File.directory?(portdir)
>
> begin
> run_make_config(portdir, origin) if $config
Thank you, I committed your fix to projects CVS.
--
Stanislav Sedov
ST4096-RIPE
More information about the freebsd-ruby
mailing list