~elopio/snapcraft/fix1477638-format_strings-3

« back to all changes in this revision

Viewing changes to snapcraft/common.py

  • Committer: Leo Arias
  • Date: 2015-07-23 14:23:29 UTC
  • mfrom: (90.3.15 trunk)
  • Revision ID: leo.arias@canonical.com-20150723142329-3vehirzb6y9rspu9
Merged with trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
import os
20
20
import subprocess
 
21
import sys
21
22
import tempfile
22
23
 
23
24
env = []
38
39
        return subprocess.call(['/bin/sh', f.name] + cmd, **kwargs) == 0
39
40
 
40
41
 
 
42
def fatal(msg):
 
43
    sys.exit(1)
 
44
 
 
45
 
41
46
commandOrder = ["pull", "build", "stage", "snap"]
42
47
stagedir = os.path.join(os.getcwd(), "stage")
43
48
snapdir = os.path.join(os.getcwd(), "snap")