[gobolinux-users] Freshen 2.1 released

Andy Feldman nereusren at gmail.com
Wed Apr 11 01:45:52 UTC 2007


Thanks for updating and upgrading Freshen! I look forward to using it.
Which I can't quite do yet... I get a similar (but not identical)
error as Jeremy's. Here's the output of running Freshen 2.2.0 with no
arguments:

[...]
Freshen: Normalised dependency in Avidemux: Faac should be FAAC
Freshen: Could not find true case of KDE
Freshen: Normalised dependency in Avidemux: KDE should be
Freshen: Error: undefined method `downcase' for nil:NilClass [NoMethodError]
Backtrace:
  /Programs/Freshen/2.2.0/lib/freshen-functions.rb:20:in `getTrueCase'
  /Programs/Freshen/2.2.0/lib/freshen-functions.rb:130:in
`getNewestAvailableVersion'
  /Programs/Freshen/2.2.0/lib/freshen-functions.rb:133:in
`getNewestAvailableVersion'
  /Programs/Freshen/2.2.0/lib/depsort.rb:34:in `createDepHash'
  /Programs/Freshen/2.2.0/lib/depsort.rb:30:in `createDepHash'
  /Programs/Freshen/2.2.0/lib/depsort.rb:29:in `createDepHash'
  /Programs/Freshen/2.2.0/lib/freshen-functions.rb:337:in `produceUpdatesList'
  /System/Links/Executables/Freshen:518:in `sysStatus'
  /System/Links/Executables/Freshen:156:in `run'
  /System/Links/Libraries/ruby/site_ruby/1.8/gobo.rb:187:in `start'
  /System/Links/Executables/Freshen:644

I tracked that backtrace to figure it out:
On line 130 of freshen-functions.rb, getTrueCase cannot find the true
case of KDE (which doesn't exist anymore but is sometimes referenced
as a dependency in outdated recipes), so it returns nil instead. That
value gets assigned to the variable np. Then np is used to call
another instance of getNewestAvailableVersion on line 133, which calls
getTrueCase again (on line 130) using nil as the argument, which has
an error when it tries to do prog.downcase on line 20.

I'm not sure what you can return from getNewestAvailableVersion to
indicate the result should be ignored, but whatever it is, it seems
like you'd want to return it right after line 130 if a test reveals np
is nil.

I have no idea why this shows up on my system but not others'. I have
Ruby 1.8.4, and I made sure to SymlinkProgram Freshen and
UpdateSettings Freshen after installing the package since it
complained about the signature.

-Andy

On 4/10/07, Michael Homer <gobo-users-dufus at wotfun.com> wrote:
[...]
> Hopefully, it works - I haven't been able to reproduce your breakage
> even by wiping out all trace and installing from scratch. A recipe has
> been submitted, although it's not in the store yet, and the package is
> available at http://e.geek.nz/files/gobo/Freshen--2.2.0--i686.tar.bz2
>
> -Michael


More information about the gobolinux-users mailing list