Skip to content

Commit 1751f17

Browse files
committed
Fix libsolv nightly builds by downloading all current patches
Since we take libsolv specfile from fedora we have to somehow deal with its patches otherwise the build fails. We could either drop them or use them. Since the specfile could be changed in a way that requires the patches to successfully create an rpm I think it will be more robust to download and use them.
1 parent 0aaaf4a commit 1751f17

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/nightly.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ jobs:
4949
specfile_path: libsolv.spec
5050
actions:
5151
post-upstream-clone:
52+
# Download spec
5253
- "wget https://src.fedoraproject.org/rpms/libsolv/raw/main/f/libsolv.spec -O libsolv.spec"
54+
# Download patches used in the spec
55+
- bash -c "spectool -P libsolv.spec | awk '{print $2}' | xargs -I {} curl -O https://src.fedoraproject.org/rpms/libsolv/raw/rawhide/f/{}"
5356
EOL
5457
COMMAND_STRING+=" -c ./packit_libsolv.yaml"
5558
fi

0 commit comments

Comments
 (0)