Commit 18c5034e authored by Seth Forshee's avatar Seth Forshee

UBUNTU: [Debian] list-udeb-updates -- support linux-x.y package names

Signed-off-by: default avatarSeth Forshee <seth.forshee@canonical.com>
parent 936a3557
......@@ -24,7 +24,8 @@ if [ $# -ne 2 ]; then
fi
# Bail if the source package or version string isn't the format we expect
if ! (expr match "$1" '^linux$' &>/dev/null || expr match "$1" '^linux-hwe[a-z\-]*$' &>/dev/null)
if ! (expr match "$1" '^linux$' &>/dev/null || expr match "$1" '^linux-hwe[a-z\-]*$' &>/dev/null ||
expr match "$1" '^linux-[0-9]\+\.[0-9]\+$' &>/dev/null)
then
errecho "Invalid source package $1"
exit 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment