chiark / gitweb /
use common.regsub_file() instead of Popen(sed)
authorHans-Christoph Steiner <hans@eds.org>
Thu, 30 Jul 2015 20:13:12 +0000 (22:13 +0200)
committerHans-Christoph Steiner <hans@eds.org>
Fri, 31 Jul 2015 22:38:41 +0000 (00:38 +0200)
commit85febd40d1bfc5498b7079e8921ac9cbaf44d3e3
tree0a96e8823fc704ef24a2eb6e0b1d83fcd4cb63b4
parent4a478528c27e52547d2bf9b2618cd3ae29956249
use common.regsub_file() instead of Popen(sed)

Python libraries work better in Python than running external commands, and
it also makes the code much more portable.  For example, the GNU and BSD
sed commands have different, and sometimes conflicting, flags.

This also reworks the regexp patterns to be more tightly focused, and not
change the same variable name in comments or elsewhere.
fdroidserver/build.py
fdroidserver/common.py