diff options
| author | Jack Nagel | 2015-04-02 20:22:12 -0400 |
|---|---|---|
| committer | Jack Nagel | 2015-04-02 20:22:12 -0400 |
| commit | 27092cabc4bda0904e1616bb2e5d4d949dbd3178 (patch) | |
| tree | 16304967d4773c1942db4dec9e7a98f5ce941a17 /Library/Homebrew/cmd | |
| parent | 1b5fc1fb02691f0868f855443f1393568fe2b465 (diff) | |
| download | brew-27092cabc4bda0904e1616bb2e5d4d949dbd3178.tar.bz2 | |
Switch PkgVersion to use composition
Comparing PkgVersion and Version objects can produce nonsensical
results. For example, equality is not symmetric:
irb(main):002:0> PkgVersion.new("1.0", 0) == Version.new("1.0")
=> false
irb(main):003:0> Version.new("1.0") == PkgVersion.new("1.0", 0)
=> true
Rather than attempt to deal with subclass-superclass equality, let's use
composition and punt on the problem altogether.
Diffstat (limited to 'Library/Homebrew/cmd')
0 files changed, 0 insertions, 0 deletions
