projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17b31a6
)
make-version.py: accomodate windows by ignoring the junk that appears at the start...
author
Brian Warner
<warner@allmydata.com>
Wed, 16 May 2007 00:10:42 +0000
(17:10 -0700)
committer
Brian Warner
<warner@allmydata.com>
Wed, 16 May 2007 00:10:42 +0000
(17:10 -0700)
misc/make-version.py
patch
|
blob
|
history
diff --git
a/misc/make-version.py
b/misc/make-version.py
index 466240e0e6c3f7d1bb7b25a5d2cd174a10c90841..a4f68164447dec03f32bc53b508ea762b046943d 100644
(file)
--- a/
misc/make-version.py
+++ b/
misc/make-version.py
@@
-76,6
+76,12
@@
def update():
print "so I'm leaving version.py alone"
return 0
+ # windows' weird ssh process prepends some 'plink: unknown option "-O"'
+ # junk to the beginning of the otput. To overcome this, manually scan for
+ # the opening <changelog> tag before giving anything to the xml parser.
+
+ output = output[output.find("<changelog>"):]
+
try:
doc = xml.dom.minidom.parseString(output)
except xml.parsers.expat.ExpatError: