mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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:
@@ -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 *
|
||||
}
|
||||
|
||||
@@ -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 *
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user