Download remote sources before updating anything
Build and provide rpm of demus-packaging-utils / Build and deploy an rpm to the demus.dk repo (f44) (release) Failing after 23s
Build and provide rpm of demus-packaging-utils / Build and deploy an rpm to the demus.dk repo (rawhide) (release) Failing after 21s

This commit is contained in:
2026-06-05 23:06:10 +02:00
parent 55bdece93f
commit 26dd7bd296
2 changed files with 8 additions and 3 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
%global major 0
%global minor 1
%global release 2
%global release 3
Name: demus-packaging-utils
Version: %{major}.%{minor}.%{release}
@@ -14,7 +14,7 @@ Source: macros.demus-packaging
Source: LICENSE
Source: README.md
Requires: bash go-vendor-tools
Requires: bash go-vendor-tools rpmdevtools
BuildArch: noarch
+6 -1
View File
@@ -1,5 +1,6 @@
#!/bin/bash
# Update various generated artifacts in rpm packages
# Update various generated artifacts in rpm packages.
# This should be run in the directory containing the spec file.
# * Go vendor archive and config
# * COPR source file
@@ -11,6 +12,10 @@ if [ $# -ne 1 ] || ! [[ "$1" =~ .*.\.spec$ ]] || [ ! -f "$1" ]; then
exit 1
fi
# Ensure remote sources are downloaded
spectool -g "$1"
# go2rpm creates a go-vendor-tools.toml file when using the vendor profile
if grep -q go-vendor-tools.toml "$1"; then
echo Updating go vendor archive
go2rpm-vendor-update "$1"