From 95fba2979745deba67119627310e9caffecb9e6f Mon Sep 17 00:00:00 2001 From: Nick Owens Date: Thu, 3 Dec 2015 14:03:34 -0800 Subject: [PATCH] update_ebuilds: allow underscore, needed for app-misc/c_rehash --- update_ebuilds | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update_ebuilds b/update_ebuilds index a847afde58..05cf3ace0f 100755 --- a/update_ebuilds +++ b/update_ebuilds @@ -48,7 +48,7 @@ cd "$FLAGS_portage_stable" for pkg in "$@"; do # Only allow packages, not categories or the whole tree - if [[ ! "$pkg" =~ ^[a-z0-9-][a-z0-9-]*\/[a-zA-Z0-9-][a-zA-Z0-9-]*$ ]] && + if [[ ! "$pkg" =~ ^[a-z0-9-][a-z0-9-]*\/[a-zA-Z0-9-][a-zA-Z0-9_-]*$ ]] && [[ ! "$pkg" =~ ^(eclass|licenses|profiles|scripts) ]]; then die "Invalid name $pkg, must be category/package or special dir." fi