summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2019-05-20 00:46:13 +0200
committerUlrich Müller <ulm@gentoo.org>2019-05-20 00:46:44 +0200
commit1c1d6d9caa7459b1a04c64e09f9499fa96fd7be9 (patch)
tree31702fe2ee5285213cf7c76a8262589f070471d3 /sys-kernel
parentnet-wireless/lorcon: add ~arm64 keyword (diff)
downloadgentoo-1c1d6d9caa7459b1a04c64e09f9499fa96fd7be9.tar.gz
gentoo-1c1d6d9caa7459b1a04c64e09f9499fa96fd7be9.tar.bz2
gentoo-1c1d6d9caa7459b1a04c64e09f9499fa96fd7be9.zip
sys-kernel/linux-firmware: More useful error message for empty package.
Closes: https://bugs.gentoo.org/686330 Package-Manager: Portage-2.3.66, Repoman-2.3.12 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/linux-firmware/linux-firmware-20190514.ebuild7
-rw-r--r--sys-kernel/linux-firmware/linux-firmware-99999999.ebuild7
2 files changed, 14 insertions, 0 deletions
diff --git a/sys-kernel/linux-firmware/linux-firmware-20190514.ebuild b/sys-kernel/linux-firmware/linux-firmware-20190514.ebuild
index ed7bc463cb38..ef067f814223 100644
--- a/sys-kernel/linux-firmware/linux-firmware-20190514.ebuild
+++ b/sys-kernel/linux-firmware/linux-firmware-20190514.ebuild
@@ -278,6 +278,13 @@ src_install() {
save_config ${PN}.conf
fi
rm ${PN}.conf || die
+
+ if ! ( shopt -s failglob; : * ) 2>/dev/null; then
+ eerror "No files to install. Check your USE flag settings"
+ eerror "and the list of files in your saved configuration."
+ die "Refusing to install an empty package"
+ fi
+
insinto /lib/firmware/
doins -r *
}
diff --git a/sys-kernel/linux-firmware/linux-firmware-99999999.ebuild b/sys-kernel/linux-firmware/linux-firmware-99999999.ebuild
index f9f30c6799ac..398592afd42b 100644
--- a/sys-kernel/linux-firmware/linux-firmware-99999999.ebuild
+++ b/sys-kernel/linux-firmware/linux-firmware-99999999.ebuild
@@ -278,6 +278,13 @@ src_install() {
save_config ${PN}.conf
fi
rm ${PN}.conf || die
+
+ if ! ( shopt -s failglob; : * ) 2>/dev/null; then
+ eerror "No files to install. Check your USE flag settings"
+ eerror "and the list of files in your saved configuration."
+ die "Refusing to install an empty package"
+ fi
+
insinto /lib/firmware/
doins -r *
}