aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Iurt/Chroot.pm
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2012-08-07 22:09:39 +0000
committerPascal Terjan <pterjan@mageia.org>2012-08-07 22:09:39 +0000
commitceddb814472cbd0d301d6a8d8433bd3bbbb8f356 (patch)
tree6112989c3d267eb0abe509dffc9a2e65aef639ea /lib/Iurt/Chroot.pm
parentbd571b45ea287ccb77b48a1b93fa957ba280f8cb (diff)
downloadiurt-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
Diffstat (limited to 'lib/Iurt/Chroot.pm')
-rw-r--r--lib/Iurt/Chroot.pm1
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) {