Skip to content

Commit

Permalink
adjust PackIt config for the recent spec file refactor (#323)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #323

PackIt currently fails to build the SRPM, because the spec now has other fields
derived from `%{commit}` that naturally does not work when we undefine it.

Reviewed By: davide125

Differential Revision: D52840246

fbshipit-source-id: e6189aa66343d32404528bc1cccd54d27bed3c2c
  • Loading branch information
michel-slm authored and facebook-github-bot committed Jan 17, 2024
1 parent 875f799 commit 76e1be4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ upstream_package_name: time
downstream_package_name: golang-github-facebook-time
actions:
# Fetch the specfile from Rawhide, remove the snapshot and drop any patches
post-upstream-clone: "bash -c \"curl -s https://src.fedoraproject.org/rpms/golang-github-facebook-time/raw/main/f/golang-github-facebook-time.spec | sed -e '/^%global commit/d' -e '/^Patch[0-9]/d' > golang-github-facebook-time.spec\""
post-upstream-clone: "bash -c \"curl -s https://src.fedoraproject.org/rpms/golang-github-facebook-time/raw/main/f/golang-github-facebook-time.spec | sed -e '/^%global date/d' -e '/^%global commit/d' -e '/^%global shortcommit/d' -e '/^Patch[0-9]/d' -e 's/^Version:.*/Version: 0/' -e '/^%undefine distprefix/d' > golang-github-facebook-time.spec\""

srpm_build_deps:
- bash
Expand Down

0 comments on commit 76e1be4

Please sign in to comment.