diff options
| author | Vlad Shablinsky | 2016-06-18 20:52:01 +0300 |
|---|---|---|
| committer | Xu Cheng | 2016-07-16 20:39:13 +0800 |
| commit | 9ac58366048f7919a168ea2aebd7103b20b7f095 (patch) | |
| tree | 15c68879547b08250b1b9eb71bccd544c49742bd /Library | |
| parent | 80489dcb499a727c7613284aea4e744a690f12dc (diff) | |
| download | brew-9ac58366048f7919a168ea2aebd7103b20b7f095.tar.bz2 | |
pkg_version: allow HeadVersion and HEAD revisions
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/pkg_version.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/pkg_version.rb b/Library/Homebrew/pkg_version.rb index 62072273a..9e065c835 100644 --- a/Library/Homebrew/pkg_version.rb +++ b/Library/Homebrew/pkg_version.rb @@ -7,13 +7,13 @@ class PkgVersion def self.parse(path) _, version, revision = *path.match(RX) - version = Version.new(version) + version = Version.create(version) new(version, revision.to_i) end def initialize(version, revision) @version = version - @revision = version.head? ? 0 : revision + @revision = revision end def head? |
