Tags 466049 patch thanks Hi,
Marc Haber wrote: > I think that > piuparts -a -b piuparts.tar.gz -d etch -d lenny torrus-apache does the > following: > > (1) unpack tarball > (2) create exit 101 policy-rc.d > (3) upgrade etch > (4) dist-upgrade lenny > (5) unpack tarball a second time in a second directory > (6) do not create policy-rc.d Right. The point is, that after unpacking the tarball a second time the functions that setup a chroot for use after unpacking are not called. Thats probably because the chroot is created 'manually' instead of calling the appropriate function chroot.create(). I'm not exactly sure if replacing that code with a call for chroot.create() as I now did is the way to go. Holger, would be good if you have a look at the responding code anyway if this works out. Best Regards, Patrick
Index: piuparts.py =================================================================== --- piuparts.py (Revision 550) +++ piuparts.py (Arbeitskopie) @@ -1669,11 +1669,8 @@ save_meta_data(settings.saveendmeta, root_info, selections) chroot.remove() - dont_do_on_panic(id) chroot = get_chroot() - chroot.create_temp_dir() - id = do_on_panic(chroot.remove) - chroot.unpack_from_tgz(root_tgz) + chroot.create() chroot.check_for_no_processes()