Skip to content

Commit

Permalink
fixing the slu bug where there are comparisons of package upgrade
Browse files Browse the repository at this point in the history
times
issue #13
  • Loading branch information
vbatts committed Feb 3, 2012
1 parent 62aa526 commit 12cc68d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/slackware/system.rb
Expand Up @@ -101,7 +101,7 @@ def self::find_removed(name)
# Slackware::System.upgrades("fart")
# => []
def self::upgrades(pkg)
find_removed(pkg).select {|p| (p.name == pkg) }.sort {|a,b| a.upgrade_time <=> b.upgrade_time }
find_removed(pkg).select {|p| (p.name == pkg) && (p.upgrade_time) }.sort {|a,b| a.upgrade_time <=> b.upgrade_time }
end

# Return an Array of packages, that were installed after provided +time+
Expand Down

0 comments on commit 12cc68d

Please sign in to comment.