Patchwork D3964: macosx: fixing macOS version generation after db9d1dd01bf0

login
register
mail settings
Submitter phabricator
Date July 19, 2018, 12:28 p.m.
Message ID <7604d106cce0018fed30804d7332d77c@localhost.localdomain>
Download mbox | patch
Permalink /patch/32914/
State Not Applicable
Headers show

Comments

phabricator - July 19, 2018, 12:28 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG25880ddf9a86: macosx: fixing macOS version generation after db9d1dd01bf0 (authored by rdamazio, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3964?vs=9627&id=9633

REVISION DETAIL
  https://phab.mercurial-scm.org/D3964

AFFECTED FILES
  contrib/genosxversion.py

CHANGE DETAILS




To: rdamazio, #hg-reviewers
Cc: glandium, mercurial-devel

Patch

diff --git a/contrib/genosxversion.py b/contrib/genosxversion.py
--- a/contrib/genosxversion.py
+++ b/contrib/genosxversion.py
@@ -117,9 +117,9 @@ 
         return
     with open(opts.versionfile) as f:
         for l in f:
-            if l.startswith('version = '):
+            if l.startswith('version = b'):
                 # version number is entire line minus the quotes
-                ver = l[len('version = ') + 1:-2]
+                ver = l[len('version = b') + 1:-2]
                 break
     if opts.paranoid:
         print(paranoidver(ver))