File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -79,8 +79,10 @@ clean-imagegen:
7979# the same, but the actual .rpm files may be fundamentally different.
8080$(STATUS_FLAGS_DIR ) /imagegen_cleanup.flag : $(depend_REPO_SNAPSHOT_TIME )
8181 @echo " REPO_SNAPSHOT_TIME has changed, sanitizing rpm cache"
82- find " $( local_and_external_rpm_cache) " -type f -name ' *.rpm' -delete
83- touch $@
82+ @if [ -d " $( local_and_external_rpm_cache) " ]; then \
83+ find " $( local_and_external_rpm_cache) " -type f -name ' *.rpm' -delete; \
84+ fi
85+ @touch $@
8486
8587# #help:target:fetch-image-packages=Locate and download all packages required for an image build.
8688fetch-image-packages : $(image_package_cache_summary )
Original file line number Diff line number Diff line change @@ -269,8 +269,10 @@ clean-compress-srpms:
269269# the same, but the actual .rpm files may be fundamentally different.
270270$(STATUS_FLAGS_DIR ) /build_packages_cache_cleanup.flag : $(depend_REPO_SNAPSHOT_TIME )
271271 @echo " REPO_SNAPSHOT_TIME has changed, sanitizing rpm cache"
272- find " $( remote_rpms_cache_dir) " -type f -name ' *.rpm' -delete
273- touch $@
272+ @if [ -d " $( remote_rpms_cache_dir) " ]; then \
273+ find " $( remote_rpms_cache_dir) " -type f -name ' *.rpm' -delete; \
274+ fi
275+ @touch $@
274276
275277ifeq ($(REBUILD_PACKAGES ) ,y)
276278$(RPMS_DIR ) : $(STATUS_FLAGS_DIR ) /build-rpms.flag
You can’t perform that action at this time.
0 commit comments