aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2012-08-08 08:27:16 +0000
committerPascal Terjan <pterjan@mageia.org>2012-08-08 08:27:16 +0000
commit546f69e7769a949e75b8cc8292684c3155f51c29 (patch)
treefd3e5db457a32008ecedfd6c819ea082ad863c72
parent3d38ad213d980c08fe4c207ed7d925d9784e8f84 (diff)
downloadiurt-546f69e7769a949e75b8cc8292684c3155f51c29.tar
iurt-546f69e7769a949e75b8cc8292684c3155f51c29.tar.gz
iurt-546f69e7769a949e75b8cc8292684c3155f51c29.tar.bz2
iurt-546f69e7769a949e75b8cc8292684c3155f51c29.tar.xz
iurt-546f69e7769a949e75b8cc8292684c3155f51c29.zip
Add a comment
-rw-r--r--lib/Iurt/Chroot.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Iurt/Chroot.pm b/lib/Iurt/Chroot.pm
index 7b15950..37ea892 100644
--- a/lib/Iurt/Chroot.pm
+++ b/lib/Iurt/Chroot.pm
@@ -316,6 +316,8 @@ sub create_build_chroot_tar {
return;
}
sudo($config, "--tar", $chroot_tar, $tmp_chroot);
+ # This rename may fail if for example tmp chroots are in another FS
+ # This does not matter as it will then be rm + untar
rename $tmp_chroot, $chroot;
}