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>
This commit is contained in:
Ulrich Müller
2019-05-20 00:46:13 +02:00
parent c208cb4844
commit 1c1d6d9caa
2 changed files with 14 additions and 0 deletions

View File

@@ -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 *
}

View File

@@ -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 *
}