From e1e1aaaeef34a218448180daaf28d9537488b15d Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Thu, 1 Mar 2018 17:34:22 +0100 Subject: [pkg] fix packer so that file hash matches --- pkg/riseupvpn/pack_installers | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/riseupvpn/pack_installers b/pkg/riseupvpn/pack_installers index ece1cfb9..eb3a08bb 100755 --- a/pkg/riseupvpn/pack_installers +++ b/pkg/riseupvpn/pack_installers @@ -22,8 +22,10 @@ POLKIT = \"\"\"{polkit}\"\"\" BMROOT_DEST = "/usr/local/sbin/bitmask-root" with open(BMROOT_DEST, "w") as bmroot: lines = str(decode(BMROOT)).split("\\n") - for line in lines: - bmroot.write(line + "\\n") + for i, line in enumerate(lines): + bmroot.write(line) + if i + 1 != len(lines): + bmroot.write("\\n") with open('/usr/share/polkit-1/actions/se.leap.bitmask.bundle.policy', 'w') as polkit: lines = str(decode(POLKIT)).split("\\n") for line in lines: -- cgit v1.2.3