diff options
Diffstat (limited to 'drakclassic')
-rwxr-xr-x | drakclassic | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drakclassic b/drakclassic index 9414544..308cf46 100755 --- a/drakclassic +++ b/drakclassic @@ -52,12 +52,12 @@ $::force = 0; sub clean { my ($build) = @_; - if (-e ($build->get_system_root)) { - # There shouldn't be anything mounted in the chroot, but play it safe... - umount_all_in_chroot($build); - system('sudo rm -rf ' . $build->get_system_root); + if (-e $build->get_builddir) { + system('rm -rf ' . $build->get_builddir); + } + if (-e $build->get_chroot_dir) { + system('sudo rm -rf ' . $build->get_chroot_dir); } - system('rm -rf ' . $build->get_builddir) if -e ($build->get_builddir); } ############################################################################### |