Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Apr 25, 2019

Conversation

hhromic
Copy link
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
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