Skip to content

Commit

Permalink
Do not show instructions for failed build
Browse files Browse the repository at this point in the history
Fixes #383
  • Loading branch information
kapr200 committed Sep 26, 2024
1 parent 7dd9ca0 commit 0bbaf1d
Showing 1 changed file with 38 additions and 35 deletions.
73 changes: 38 additions & 35 deletions frontend/src/components/copr/CoprBuild.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,41 +75,44 @@ export const CoprBuild = () => {
<CoprBuildDetail data={data} />
</CardBody>
</Card>
<Card>
<CardBody>
<Text component="p">
<strong>
You can install the built RPMs by following these steps:
</strong>
</Text>
<br />
<List>
<ListItem>
<code>sudo dnf install -y dnf-plugins-core</code>
</ListItem>
<ListItem>
<code>
sudo dnf copr enable {data.copr_owner}/{data.copr_project}
</code>
</ListItem>
{data.built_packages ? (
<ListItem>
<code>
sudo dnf install -y{" "}
{getPackagesToInstall(data.built_packages).join(" ")}
</code>
</ListItem>
) : (
<></>
)}
</List>
<Text component="p">
<br />
Please note that the RPMs should be used only in a testing
environment.
</Text>
</CardBody>
</Card>

{data.built_packages ? (
<>
<Card>
<CardBody>
<Text component="p">
<strong>
You can install the built RPMs by following these steps:
</strong>
</Text>
<br />
<List>
<ListItem>
<code>sudo dnf install -y dnf-plugins-core</code>
</ListItem>
<ListItem>
<code>
sudo dnf copr enable {data.copr_owner}/{data.copr_project}
</code>
</ListItem>
<ListItem>
<code>
sudo dnf install -y{" "}
{getPackagesToInstall(data.built_packages).join(" ")}
</code>
</ListItem>
</List>
<Text component="p">
<br />
Please note that the RPMs should be used only in a testing
environment.
</Text>
</CardBody>
</Card>
</>
) : (
<></>
)}
</PageSection>
</>
);
Expand Down

0 comments on commit 0bbaf1d

Please sign in to comment.