~ubuntu-branches/ubuntu/precise/zeroinstall-injector/precise

« back to all changes in this revision

Viewing changes to 0store-secure-add

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Leonard
  • Date: 2011-10-16 11:32:42 UTC
  • mfrom: (1.1.26 upstream)
  • Revision ID: james.westby@ubuntu.com-20111016113242-019nxef8gusev0r0
Tags: 1.4.1-1
* New upstream release.
* Changed "rpm" dependency from "recommends" to "suggests".

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/env python
 
2
 
 
3
from __future__ import print_function
 
4
 
2
5
import sys, os
3
6
from zeroinstall import zerostore, SafeException
4
7
from zeroinstall.zerostore import cli, manifest
5
8
 
 
9
# Make all system files world-readable, even if the default
 
10
# system umask is more strict.
 
11
os.umask(0o022)
 
12
 
6
13
# import logging; logging.getLogger().setLevel(logging.DEBUG)
7
14
 
8
15
try:
22
29
        manifest.copy_tree_with_verify('.', '/var/cache/0install.net/implementations',
23
30
                                        manifest_data, required_digest)
24
31
except (IOError, SafeException) as ex:
25
 
        print >>sys.stderr, ex
 
32
        print(ex, file=sys.stderr)
26
33
        sys.exit(1)