Skip to content

Commit 142a638

Browse files
committed
Fixes for PPAs and copr
©! I, Hugo Landau <hlandau@devever.net>, hereby licence these changes under the ©! licence with SHA256 hash ©! fd80a26fbb3f644af1fa994134446702932968519797227e07a1368dea80f0bc.
1 parent 6931439 commit 142a638

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ addons:
3434
- lintian
3535
- ncftp
3636
- rpm
37+
- fakeroot
38+
- jq
3739
mariadb: "10.1"
3840

3941
sudo: false

.travis/after_success

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,17 +90,21 @@ for x in $RPMS; do
9090
done
9191
echo travis_fold:end:build-srpm
9292

93+
COPR_CHROOTS="$(curl "https://copr.fedorainfracloud.org/api_2/projects/$COPR_PROJECT_ID/chroots" | jq '.chroots|map(.chroot.name)')"
94+
9395
for srpm in $HOME/rpmbuild/SRPMS/acmetool-*.rpm; do
9496
if [[ $srpm != *nocgo* ]]; then
9597
cat <<END > /tmp/rpm-metadata
9698
{
97-
"project_id": $COPR_PROJECT_ID
99+
"project_id": $COPR_PROJECT_ID,
100+
"chroots": $COPR_CHROOTS
98101
}
99102
END
100103
else
101104
cat <<END > /tmp/rpm-metadata
102105
{
103-
"project_id": $COPR_PROJECT_ID
106+
"project_id": $COPR_PROJECT_ID,
107+
"chroots": $COPR_CHROOTS
104108
}
105109
END
106110
fi

0 commit comments

Comments
 (0)