vbatts/slack-utils — Issue #13: slu upgrade_time sort failure
Author: vbatts
Created: 2012-02-03 16:19:52+00:00
State: open

if a package has a nil upgrade_time, then the sort is failing.
[vbatts@jellyroll src] 5005 ruby bin/slu -D kernel
D, [2012-02-03T11:19:30.931782 #18796] DEBUG -- slu: options: {:debug=>true}
"kernel-firmware" (current version 20120109git build 1) has been upgraded before
W, [2012-02-03T11:19:30.965447 #18796] WARN -- slu: comparison of Slackware::Package with Slackware::Package failed
D, [2012-02-03T11:19:30.965523 #18796] DEBUG -- slu: ArgumentError
/usr/lib64/ruby/site_ruby/1.9.1/slackware/system.rb:104:in `sort'
/usr/lib64/ruby/site_ruby/1.9.1/slackware/system.rb:104:in `upgrades'
/usr/lib64/ruby/site_ruby/1.9.1/slackware/utils.rb:156:in `block in print_upgrades'
/usr/lib64/ruby/site_ruby/1.9.1/slackware/utils.rb:150:in `each'
/usr/lib64/ruby/site_ruby/1.9.1/slackware/utils.rb:150:in `print_upgrades'
bin/slu:60:in `

'