From 6dd1e1e1b048fc9e579b9b28fc68268de3937ba1 Mon Sep 17 00:00:00 2001 From: Yue Tao Date: Thu, 14 Apr 2022 13:56:51 +0800 Subject: [PATCH] debrepack.py: don't clean up the "srcdir" in setup The debian folder is parsed by setup(), which is called by download(), checksum(), package(), and only package() access the "srcdir". At beginning of package(), the "packdir" which is the upper directory of "srcdir" is recreated, so don't need clean up "srcdir" in setup. Test Plan: Pass: build-pkgs -a Story: 2008846 Task: 45052 Signed-off-by: Yue Tao Change-Id: I4a877c5325b35b85f77bbf9d764e26368ddd4ef2 --- build-tools/stx/debrepack.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/build-tools/stx/debrepack.py b/build-tools/stx/debrepack.py index cecbee3a..8d254752 100755 --- a/build-tools/stx/debrepack.py +++ b/build-tools/stx/debrepack.py @@ -331,8 +331,6 @@ class Parser(): srcdir = self.pkginfo["debname"] + "-" + self.versions["upstream_version"] self.pkginfo["srcdir"] = os.path.join(self.pkginfo["packdir"], srcdir) - if os.path.exists(self.pkginfo["srcdir"]): - shutil.rmtree(self.pkginfo["srcdir"]) def set_build_type(self):