aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2017-10-13 16:13:14 +0100
committerPascal Terjan <pterjan@mageia.org>2017-10-13 16:13:14 +0100
commit8c240e38a776c3ec3cf8168fb56579373c790893 (patch)
tree96a4e9c7ef43414fc68693c16d75b2cfdcea87cb /lib
parent196cd393e5ff8afee4731a486eb3b247a18fdbd4 (diff)
downloadiurt-8c240e38a776c3ec3cf8168fb56579373c790893.tar
iurt-8c240e38a776c3ec3cf8168fb56579373c790893.tar.gz
iurt-8c240e38a776c3ec3cf8168fb56579373c790893.tar.bz2
iurt-8c240e38a776c3ec3cf8168fb56579373c790893.tar.xz
iurt-8c240e38a776c3ec3cf8168fb56579373c790893.zip
Do not create network namespace when crating chroot failed (broken by previous commit)
Diffstat (limited to 'lib')
-rw-r--r--lib/Iurt/Chroot.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Iurt/Chroot.pm b/lib/Iurt/Chroot.pm
index 9710b0f..4b14e1f 100644
--- a/lib/Iurt/Chroot.pm
+++ b/lib/Iurt/Chroot.pm
@@ -316,7 +316,7 @@ sub create_build_chroot {
}
}
- if ($use_netns) {
+ if ($ret && $use_netns) {
sudo($config, '--netns_create', $chroot);
}
return $ret;