Skip to content

Do not assume the changelog file is always present for the info file#280

Merged
XECDesign merged 1 commit intoRPi-Distro:masterfrom
hhromic:info-file
Apr 25, 2019
Merged

Do not assume the changelog file is always present for the info file#280
XECDesign merged 1 commit intoRPi-Distro:masterfrom
hhromic:info-file

Conversation

@hhromic
Copy link
Copy Markdown
Contributor

@hhromic hhromic commented Apr 24, 2019

The (..)/raspberrypi-kernel/changelog.Debian.gz file is not guaranteed to be present in the built ROOTFS_DIR, for example when building very minimal images without package documentation. In these cases, the firmware variable will be left empty and the subsequent calls to curl will return large 404 HTML content from GitHub.

Instead, simply check if the changelog file exists before using it.

This does not affect the standard image generation for official Raspbian (tested).

The `(..)/raspberrypi-kernel/changelog.Debian.gz` file is not guaranteed
to be present in the built `ROOTFS_DIR`, for example when building very
minimal images without package documentation. In these cases, the `firmware`
variable will be left empty and the subsequent calls to `curl` will return
large 404 HTML content from GitHub.

Instead, simply check if the changelog file exists before using it.
@XECDesign XECDesign merged commit 8acf95f into RPi-Distro:master Apr 25, 2019
@XECDesign
Copy link
Copy Markdown
Member

Thanks

@hhromic hhromic deleted the info-file branch April 25, 2019 09:34
fuji246 pushed a commit to lomorage/pi-gen that referenced this pull request Sep 17, 2019
…Pi-Distro#280)

The `(..)/raspberrypi-kernel/changelog.Debian.gz` file is not guaranteed
to be present in the built `ROOTFS_DIR`, for example when building very
minimal images without package documentation. In these cases, the `firmware`
variable will be left empty and the subsequent calls to `curl` will return
large 404 HTML content from GitHub.

Instead, simply check if the changelog file exists before using it.
general-wedge pushed a commit to HQapp/hq-os that referenced this pull request Jan 5, 2020
…Pi-Distro#280)

The `(..)/raspberrypi-kernel/changelog.Debian.gz` file is not guaranteed
to be present in the built `ROOTFS_DIR`, for example when building very
minimal images without package documentation. In these cases, the `firmware`
variable will be left empty and the subsequent calls to `curl` will return
large 404 HTML content from GitHub.

Instead, simply check if the changelog file exists before using it.
alexgg pushed a commit to balena-os/pi-gen that referenced this pull request Jul 12, 2021
…Pi-Distro#280)

The `(..)/raspberrypi-kernel/changelog.Debian.gz` file is not guaranteed
to be present in the built `ROOTFS_DIR`, for example when building very
minimal images without package documentation. In these cases, the `firmware`
variable will be left empty and the subsequent calls to `curl` will return
large 404 HTML content from GitHub.

Instead, simply check if the changelog file exists before using it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants