summaryrefslogtreecommitdiff
path: root/morphlib/bins.py
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2012-05-29 17:18:46 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2012-05-30 13:11:13 +0100
commitb088e31b740c62b90ddf9c3342b876736790c1e8 (patch)
treeb73ea9c49d130c584c50c3b8c55f755f5cfa6d4a /morphlib/bins.py
parent34817d54a193c6c0937ef3868f31d822e90aa740 (diff)
downloadmorph-b088e31b740c62b90ddf9c3342b876736790c1e8.tar.gz
morph: remove dead code and replace Execute with app.runcmd
Diffstat (limited to 'morphlib/bins.py')
-rw-r--r--morphlib/bins.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/morphlib/bins.py b/morphlib/bins.py
index f42951b7..93aa7b15 100644
--- a/morphlib/bins.py
+++ b/morphlib/bins.py
@@ -29,7 +29,7 @@ import stat
import tarfile
-def create_chunk(rootdir, f, regexps, ex, dump_memory_profile=None):
+def create_chunk(rootdir, f, regexps, dump_memory_profile=None):
'''Create a chunk from the contents of a directory.
Only files and directories that match at least one of the regular
@@ -95,7 +95,7 @@ def create_chunk(rootdir, f, regexps, ex, dump_memory_profile=None):
dump_memory_profile('after removing in create_chunks')
-def create_stratum(rootdir, f, ex):
+def create_stratum(rootdir, f):
'''Create a stratum from the contents of a directory.'''
logging.debug('Creating stratum file %s from %s' % (f.name, rootdir))
tar = tarfile.open(fileobj=f, mode='w:gz')