Skip to content

Commit cf2647c

Browse files
author
Fabio Scaccabarozzi
committed
scripts/bump_and_qa_ebuild.sh: allow archiving also of non-rust packages (e.g. icons, wallpapers)
1 parent 35de252 commit cf2647c

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

scripts/bump_and_qa_ebuild.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)