[tor-bugs] #12400 [Tor bundles/installation]: Rewrite fix-info-plist.sh with Python plistlib

Tor Bug Tracker & Wiki blackhole at torproject.org
Sat Jun 14 20:54:37 UTC 2014


#12400: Rewrite fix-info-plist.sh with Python plistlib
--------------------------------------+---------------------
 Reporter:  dcf                       |          Owner:  dcf
     Type:  enhancement               |         Status:  new
 Priority:  minor                     |      Milestone:
Component:  Tor bundles/installation  |        Version:
 Keywords:                            |  Actual Points:
Parent ID:                            |         Points:
--------------------------------------+---------------------
 [https://gitweb.torproject.org/builders/tor-browser-
 bundle.git/blob/5b4c3fe36ce264f7547d7713073876ecedb51e58:/gitian/build-
 helpers/fix-info-plist.sh fix-info-plist.sh] uses a sed script to modify
 an XML file. I looked into ways to programmatically modify a plist file,
 and found Python [https://docs.python.org/2/library/plistlib.html
 plistlib]. It will be more robust in case of changes in the input plist
 file like missing keys. I used plistlib with success in
 [https://gitweb.torproject.org/user/dcf/tor-browser-
 bundle.git/blob/9faaa12298dc9bc79eef34e9f0a4a106060c61df:/gitian/build-
 helpers/background-plist.py background-plist.py].

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/12400>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list