diff options
author | Pascal Terjan <pterjan@mageia.org> | 2012-08-07 22:09:39 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2012-08-07 22:09:39 +0000 |
commit | ceddb814472cbd0d301d6a8d8433bd3bbbb8f356 (patch) | |
tree | 6112989c3d267eb0abe509dffc9a2e65aef639ea | |
parent | bd571b45ea287ccb77b48a1b93fa957ba280f8cb (diff) | |
download | iurt-ceddb814472cbd0d301d6a8d8433bd3bbbb8f356.tar iurt-ceddb814472cbd0d301d6a8d8433bd3bbbb8f356.tar.gz iurt-ceddb814472cbd0d301d6a8d8433bd3bbbb8f356.tar.bz2 iurt-ceddb814472cbd0d301d6a8d8433bd3bbbb8f356.tar.xz iurt-ceddb814472cbd0d301d6a8d8433bd3bbbb8f356.zip |
Do not rm -rf + untar newly created chroot
-rw-r--r-- | lib/Iurt/Chroot.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Iurt/Chroot.pm b/lib/Iurt/Chroot.pm index e37b6d8..e3ca280 100644 --- a/lib/Iurt/Chroot.pm +++ b/lib/Iurt/Chroot.pm @@ -313,6 +313,7 @@ sub create_build_chroot { return; } sudo($config, "--tar", $chroot_tar, $tmp_chroot); + rename $tmp_chroot, $chroot; } if (!-d $chroot) { |