portupgrade: cmd_stop_rc broken in 2.4.7?

Stefan Ehmann shoesoft at gmx.net
Tue Nov 9 22:39:20 UTC 2010


Hello,

After the update to 2.4.7, I get an error when I try to update any port, e.g.:

# portupgrade vim
...
--->  Backing up the old version
--->  Uninstalling the old version
--->  Deinstalling 'vim-7.3.48'
** Listing the failed packages (-:ignored / *:skipped / !:failed)
        ! vim-7.3.48    (undefined method `nil' for "":String)
** Listing the failed packages (-:ignored / *:skipped / !:failed)
        ! editors/vim (vim-7.3.48)      (uninstall error)


Update works fine if I remove the following entry in 
/usr/local/etc/pkgtools.conf:

  BEFOREDEINSTALL = {
    # Automatically stop the service for each package that has a
    # rc script enabled
    '*' => proc { |origin|
      cmd_stop_rc(origin)
    },
  }


More information about the freebsd-ruby mailing list