mirror of
https://github.com/flatcar/scripts.git
synced 2026-02-05 07:41:37 +01:00
update_ebuilds: allow underscore, needed for app-misc/c_rehash
This commit is contained in:
parent
dca121d83f
commit
95fba29797
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user