[slave.mk]: Clear deb_dist directory (#1344)
Python packages, having their version changed, will fail to build because deb_dist directory contains both build directories for old and new version, and (for some uncleaer reason) debian utilities don't know which one to choose. Signed-off-by: marian-pritsak <marianp@mellanox.com>
This commit is contained in:
parent
58d8302b53
commit
43554c8b1a
1
slave.mk
1
slave.mk
@ -235,6 +235,7 @@ $(addprefix $(DEBS_PATH)/, $(SONIC_PYTHON_STDEB_DEBS)) : $(DEBS_PATH)/% : .platf
|
||||
if [ -f $($*_SRC_PATH).patch/series ]; then pushd $($*_SRC_PATH) && QUILT_PATCHES=../$(notdir $($*_SRC_PATH)).patch quilt push -a; popd; fi
|
||||
# Build project
|
||||
pushd $($*_SRC_PATH) $(LOG)
|
||||
rm -rf deb_dist/* $(LOG)
|
||||
python setup.py --command-packages=stdeb.command bdist_deb $(LOG)
|
||||
popd $(LOG)
|
||||
# Clean up
|
||||
|
Loading…
Reference in New Issue
Block a user