File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -710,8 +710,15 @@ function phase_source_archive() {
710710 return 1
711711 fi
712712
713- # Check if this is a meta package (no sources)
714- if [[ ! -f " ${submodule_dir} /Cargo.toml" ]] && [[ ! -f " ${submodule_dir} /src" ]]; then
713+ # Check if this is a meta package (no sources or build files)
714+ # A package needs archiving if it has actual content:
715+ # - Cargo.toml (Rust packages)
716+ # - Makefile or justfile (build system packages)
717+ # - src/ directory (C/C++ or other languages)
718+ if [[ ! -f " ${submodule_dir} /Cargo.toml" ]] && \
719+ [[ ! -f " ${submodule_dir} /Makefile" ]] && \
720+ [[ ! -f " ${submodule_dir} /justfile" ]] && \
721+ [[ ! -d " ${submodule_dir} /src" ]]; then
715722 log_info " [${pkg} ] Meta package detected (no sources), skipping archive"
716723 return 0
717724 fi
You can’t perform that action at this time.
0 commit comments