From ba3844c9b60176fd61b0c6ec9540a9985f373cc6 Mon Sep 17 00:00:00 2001 From: stas Date: Wed, 6 Jul 2022 19:44:22 +0300 Subject: [PATCH] #1 --- terrarium_assembler/ta.py | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/terrarium_assembler/ta.py b/terrarium_assembler/ta.py index 91e662d..25298e1 100644 --- a/terrarium_assembler/ta.py +++ b/terrarium_assembler/ta.py @@ -1637,6 +1637,7 @@ def analyse(self): r"[\d]+\.[\d]+\.so", r"[\d]+\.so", r"-[\d]+\.[\d]+-[\d]+", + r"c\+\+", ]: def replacement_f(mobj): return rex_ @@ -1873,26 +1874,26 @@ def install_templates(root_dir, args): ''' % vars()]) self.lines2sh("51-pack-iso", [ - ''' + f''' sudo chmod a+rx /usr/lib/cups -R -terrarium_assembler "%(specfile_)s" --stage-make-isoexe - ''' % vars()]) +terrarium_assembler {specfile_} --stage-make-isoexe + ''']) self.lines2sh("91-pack-debug", [ - ''' + f''' sudo chmod a+rx /usr/lib/cups -R -terrarium_assembler --debug --stage-pack=./out-debug "%(specfile_)s" - ''' % vars()]) +terrarium_assembler --debug --stage-pack=./out-debug {specfile_} + ''']) self.lines2sh("92-pack-debug-iso", [ - ''' + f''' sudo chmod a+rx /usr/lib/cups -R -terrarium_assembler --debug --stage-pack=./out-debug "%(specfile_)s" --stage-make-isoexe - ''' % vars()]) - - root_dir = 'out' +terrarium_assembler --debug --stage-pack=./out-debug {specfile_} --stage-make-isoexe + ''']) + self.lines2sh("93-analyse", [f"terrarium_assembler {specfile_} --analyse=./out > optimize_me.txt"]) + root_dir = 'out' if self.args.stage_pack: root_dir = self.root_dir = expandpath(args.stage_pack) # self.remove_exclusions()