treebuilder fixup: update comments, import re
This commit is contained in:
parent
0a2df6bda9
commit
5e242925ec
@ -20,8 +20,7 @@
|
|||||||
import logging
|
import logging
|
||||||
logger = logging.getLogger("pylorax.treebuilder")
|
logger = logging.getLogger("pylorax.treebuilder")
|
||||||
|
|
||||||
import os
|
import os, re, glob
|
||||||
import glob
|
|
||||||
from subprocess import check_call, PIPE
|
from subprocess import check_call, PIPE
|
||||||
|
|
||||||
from sysutils import joinpaths, cpfile, replace, remove
|
from sysutils import joinpaths, cpfile, replace, remove
|
||||||
@ -143,8 +142,12 @@ class TreeBuilder(BaseBuilder):
|
|||||||
# everything else operates on outroot
|
# everything else operates on outroot
|
||||||
# "mkdir", "treeinfo", "runcmd", "remove", "replace" will take multiple args
|
# "mkdir", "treeinfo", "runcmd", "remove", "replace" will take multiple args
|
||||||
|
|
||||||
# TODO: replace installtree. need glob(), find(glob), installpkg, removepkg, module
|
# TODO: replace installtree:
|
||||||
# also: run_transaction?
|
# glob(), find(glob)
|
||||||
|
# installpkg/removepkg pkgglob [pkgglob..]
|
||||||
|
# run_pkg_transaction
|
||||||
|
# removefrom [pkgname] glob [glob..]
|
||||||
|
# module modname [modname...]
|
||||||
|
|
||||||
class TemplateRunner(object):
|
class TemplateRunner(object):
|
||||||
commands = ('install', 'mkdir', 'replace', 'append', 'treeinfo',
|
commands = ('install', 'mkdir', 'replace', 'append', 'treeinfo',
|
||||||
|
Loading…
Reference in New Issue
Block a user