Skip to content

Commit

Permalink
[build] SONIC_ONLINE_DEBS no longer overwrites local build outputs (s…
Browse files Browse the repository at this point in the history
…onic-net#14822)

Manual double commit of sonic-net#14698
  • Loading branch information
jusherma authored May 8, 2023
1 parent 83ee249 commit b8d44e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions slave.mk
Original file line number Diff line number Diff line change
Expand Up @@ -488,8 +488,8 @@ $(addprefix $(DEBS_PATH)/, $(SONIC_ONLINE_DEBS)) : $(DEBS_PATH)/% : .platform \
# Load the target deb from DPKG cache
$(call LOAD_CACHE,$*,$@)

# Skip building the target if it is already loaded from cache
if [ -z '$($*_CACHE_LOADED)' ] ; then
# Skip building the target if it is already loaded from cache or exists in target/ directory
if [ -z '$($*_CACHE_LOADED)' ] && [ ! -e $(DEBS_PATH)/$* ] ; then

$(foreach deb,$* $($*_DERIVED_DEBS), \
{ curl -L -f -o $(DEBS_PATH)/$(deb) $($(deb)_CURL_OPTIONS) $($(deb)_URL) $(LOG) || { exit 1 ; } } ; )
Expand Down

0 comments on commit b8d44e6

Please sign in to comment.