Skip to content

Commit f08f4bb

Browse files
Venefilynjelly
authored andcommitted
packit: Use upstream repo as fallback
When we publish our packages we currently use the `PACKIT_DOWNSTREAM_REPO` envvar. This is not defined when we are publishing to Copr and instead we should use `PACKIT_UPSTREAM_REPO` envvar. Changing it to use downstream repo by default and fallback to upstream repo fixes this issue. Fixes: #22883 Signed-off-by: Freya Gustavsson <freya@venefilyn.se>
1 parent 00b979d commit f08f4bb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packit.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ jobs:
9999
bash -exc '
100100
# for debugging of official runs, CLI is different from packit service
101101
env | grep PACKIT
102-
tar -xJf "${PACKIT_DOWNSTREAM_REPO}/cockpit-${PACKIT_PROJECT_VERSION}.tar.xz" "cockpit-*/runtime-npm-modules.txt" --strip-components=1
103-
tools/fix-spec "${PACKIT_DOWNSTREAM_REPO}/cockpit.spec" "${PACKIT_PROJECT_VERSION}"
102+
tar -xJf "${PACKIT_DOWNSTREAM_REPO:-${PACKIT_UPSTREAM_REPO}}/cockpit-${PACKIT_PROJECT_VERSION}.tar.xz" "cockpit-*/runtime-npm-modules.txt" --strip-components=1
103+
tools/fix-spec "${PACKIT_DOWNSTREAM_REPO:-${PACKIT_UPSTREAM_REPO}}/cockpit.spec" "${PACKIT_PROJECT_VERSION}"
104104
'
105105
106106
- job: propose_downstream

0 commit comments

Comments
 (0)