[build] SONIC_ONLINE_DEBS no longer overwrites local build outputs (#14822)

Manual double commit of #14698
This commit is contained in:
Justin Sherman 2023-05-08 08:33:58 -07:00 committed by GitHub
parent 83ee249e9f
commit b8d44e6fb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -488,8 +488,8 @@ $(addprefix $(DEBS_PATH)/, $(SONIC_ONLINE_DEBS)) : $(DEBS_PATH)/% : .platform \
# Load the target deb from DPKG cache # Load the target deb from DPKG cache
$(call LOAD_CACHE,$*,$@) $(call LOAD_CACHE,$*,$@)
# Skip building the target if it is already loaded from cache # Skip building the target if it is already loaded from cache or exists in target/ directory
if [ -z '$($*_CACHE_LOADED)' ] ; then if [ -z '$($*_CACHE_LOADED)' ] && [ ! -e $(DEBS_PATH)/$* ] ; then
$(foreach deb,$* $($*_DERIVED_DEBS), \ $(foreach deb,$* $($*_DERIVED_DEBS), \
{ curl -L -f -o $(DEBS_PATH)/$(deb) $($(deb)_CURL_OPTIONS) $($(deb)_URL) $(LOG) || { exit 1 ; } } ; ) { curl -L -f -o $(DEBS_PATH)/$(deb) $($(deb)_CURL_OPTIONS) $($(deb)_URL) $(LOG) || { exit 1 ; } } ; )