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 <yue.tao@windriver.com> Change-Id: I4a877c5325b35b85f77bbf9d764e26368ddd4ef2
This commit is contained in:
parent
9ab784b972
commit
6dd1e1e1b0
@ -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):
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user