out_dir for extract_install()

This commit is contained in:
Faik Uygur
2006-05-23 07:00:50 +00:00
parent d0beef83cd
commit 98226d048b
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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
View File
@@ -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