comparison setup.py @ 1104:7d47a0f73135 1.6

setup: also ignore stderr lines about obsolete when guessing version
author Augie Fackler <raf@durin42.com>
date Mon, 03 Feb 2014 02:00:06 -0500
parents bdc9b21ea8d0
children
comparison
equal deleted inserted replaced
1103:6e1dbf6cbc92 1104:7d47a0f73135
25 # If root is executing setup.py, but the repository is owned by 25 # If root is executing setup.py, but the repository is owned by
26 # another user (as in "sudo python setup.py install") we will get 26 # another user (as in "sudo python setup.py install") we will get
27 # trust warnings since the .hg/hgrc file is untrusted. That is 27 # trust warnings since the .hg/hgrc file is untrusted. That is
28 # fine, we don't want to load it anyway. 28 # fine, we don't want to load it anyway.
29 err = [e for e in err.splitlines() 29 err = [e for e in err.splitlines()
30 if not e.startswith('Not trusting file')] 30 if not (e.startswith('Not trusting file')
31 or e.startswith('obsolete feature not enabled'))]
31 if err: 32 if err:
32 return '' 33 return ''
33 return out 34 return out
34 35
35 36