remove mount info check after build finished 04/188004/1
authorjingui.ren <jingui.ren@samsung.com>
Tue, 21 Aug 2018 11:05:34 +0000 (19:05 +0800)
committerjingui.ren <jingui.ren@samsung.com>
Thu, 30 Aug 2018 08:11:46 +0000 (16:11 +0800)
Change-Id: I66bc53dc0345350eacd378a9d849cc5808f9e246
Signed-off-by: jingui.ren <jingui.ren@samsung.com>
depanneur

index d413ebc..b727c0a 100755 (executable)
--- a/depanneur
+++ b/depanneur
@@ -2076,15 +2076,6 @@ sub build_package {
         } else {
             $rpmdirpath = `sudo chroot '$scratch' su -c "rpm --eval %{_rpmdir} 2>/dev/null" - abuild`;
             $srcrpmdirpath = `sudo chroot '$scratch' su -c "rpm --eval %{_srcrpmdir} 2>/dev/null" - abuild`;
-            {
-                # If mounted dirs left inside chroot we have to unmount them
-                my $escaped_scratch = $scratch =~ s#/#\\/#gr;
-                my $scratch_mnts = `sudo mount | awk '/$escaped_scratch/{print \$3}'`;
-                my @scratch_mnt_list = split("\n", $scratch_mnts);
-                foreach my $scratch_mnt (@scratch_mnt_list) {
-                    safe_umount($scratch_mnt);
-                }
-            }
         }
         chomp($rpmdirpath);
         chomp($srcrpmdirpath);