[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #12400 [Tor bundles/installation]: Rewrite fix-info-plist.sh with Python plistlib
#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs