~ubuntu-branches/ubuntu/oneiric/openvpn/oneiric

« back to all changes in this revision

Viewing changes to win/sign.py

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2011-06-16 18:33:37 UTC
  • mfrom: (1.3.6 upstream)
  • mto: This revision was merged to the branch mainline in revision 46.
  • Revision ID: james.westby@ubuntu.com-20110616183337-etb3qgbwjkn8zniq
Tags: upstream-2.2.0
ImportĀ upstreamĀ versionĀ 2.2.0

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)
 
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)