~ubuntu-branches/ubuntu/saucy/openvpn/saucy-proposed

« back to all changes in this revision

Viewing changes to win/sign.py

  • Committer: Package Import Robot
  • Author(s): Stéphane Graber
  • Date: 2013-05-24 17:42:45 UTC
  • mfrom: (1.1.19) (10.2.22 sid)
  • Revision ID: package-import@ubuntu.com-20130524174245-g9y6wlforycufqy5
Tags: 2.3.1-2ubuntu1
* Merge from Debian unstable. Remaining changes:
  - debian/openvpn.init.d:
    + Do not use start-stop-daemon and </dev/null to avoid blocking boot.
    + Show per-VPN result messages.
    + Add "--script-security 2" by default for backwards compatabliity.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
import sys
2
 
from wb import config, choose_arch, home_fn
3
 
 
4
 
if 'SIGNTOOL' in config:
5
 
    sys.path.append(home_fn(config['SIGNTOOL']))
6
 
 
7
 
def main(conf, arch):
8
 
    from signtool import SignTool
9
 
    st = SignTool(conf)
10
 
    for x64 in choose_arch(arch):
11
 
        st.sign_verify(x64=x64)
12
 
 
13
 
# if we are run directly, and not loaded as a module
14
 
if __name__ == "__main__":
15
 
    if len(sys.argv) >= 2:
16
 
        main(config, sys.argv[1])
17
 
    else:
18
 
        print "usage: sign <x64|x86|all>"
19
 
        sys.exit(2)