Compare commits

..

1 Commits

Author SHA1 Message Date
04eb148b70 feat: only build packages that dont exist
Some checks failed
Build / build (pull_request) Failing after 1m2s
- check the rpm repo to confirm if a package already exists
2024-12-01 01:13:38 +11:00

View File

@ -15,8 +15,8 @@ list:
cache:
echo "Refreshing DNF cache..." && \
sudo dnf clean all && \
sudo dnf makecache
dnf clean all && \
dnf makecache
# Build specific package/version
.PHONY: $(PACKAGES)
@ -33,7 +33,7 @@ build:
@cd $(RPMS_DIR)/$(PACKAGE_NAME) && \
export PACKAGE_RELEASE=$$(cat $(PACKAGE_VERSION)/release) && \
export PACKAGE_FULL_NAME=$(PACKAGE_NAME)-$(PACKAGE_VERSION)-$$PACKAGE_RELEASE && \
if sudo dnf info $$PACKAGE_FULL_NAME $(REPO_OPTIONS) > /dev/null 2>&1; then \
if dnf info $$PACKAGE_FULL_NAME $(REPO_OPTIONS) > /dev/null 2>&1; then \
echo "Skipping build for $(PACKAGE_NAME) version $(PACKAGE_VERSION) (already exists in the repository)"; \
else \
echo "Building RPM for $(PACKAGE_NAME) version $(PACKAGE_VERSION)"; \