out_dir for extract_install()
This commit is contained in:
@@ -270,7 +270,7 @@ class Install(AtomicOperation):
|
||||
if path in leftover or old_fileinfo[path].type == ctx.const.conf:
|
||||
Remove.remove_file( old_fileinfo[path] )
|
||||
|
||||
self.package.extract_install()
|
||||
self.package.extract_install(ctx.config.dest_dir())
|
||||
|
||||
def store_pisi_files(self):
|
||||
"""put files.xml, metadata.xml, actions.py and COMAR scripts
|
||||
|
||||
+2
-2
@@ -117,10 +117,10 @@ class Package:
|
||||
copies the directory archiveroot/dir to outdir"""
|
||||
self.impl.unpack_dir(dir, outdir)
|
||||
|
||||
def extract_install(self):
|
||||
def extract_install(self, outdir):
|
||||
self.extract_file('install.tar.7z', ctx.config.tmp_dir())
|
||||
tar = archive.ArchiveTar(join(ctx.config.tmp_dir(), 'install.tar.7z'), 'tar7z')
|
||||
tar.unpack(ctx.config.dest_dir())
|
||||
tar.unpack(outdir)
|
||||
|
||||
def extract_dir_flat(self, dir, outdir):
|
||||
"""Extract directory recursively, this function
|
||||
|
||||
Reference in New Issue
Block a user