Skip to content
This repository was archived by the owner on Sep 18, 2020. It is now read-only.

Commit c7ab74a

Browse files
committed
Merge pull request #546 from mischief/glsa-sync
update_ebuilds: allow glsa sync and ignore metadata if so
2 parents 9a3c5a9 + f3ef3c1 commit c7ab74a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

update_ebuilds

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ cd "$FLAGS_portage_stable"
4949
for pkg in "$@"; do
5050
# Only allow packages, not categories or the whole tree
5151
if [[ ! "$pkg" =~ ^[a-z0-9-][a-z0-9-]*\/[a-zA-Z0-9-][a-zA-Z0-9_-]*$ ]] &&
52-
[[ ! "$pkg" =~ ^(eclass|licenses|profiles|scripts) ]]; then
52+
[[ ! "$pkg" =~ ^(eclass|licenses|profiles|scripts|metadata/glsa) ]]; then
5353
die "Invalid name $pkg, must be category/package or special dir."
5454
fi
5555

@@ -72,7 +72,7 @@ for pkg in "$@"; do
7272
git add -A "$pkg"
7373

7474
# Sync up the ebuild metadata cache
75-
if [[ $FLAGS_regencache -eq $FLAGS_TRUE && "$pkg" == */* ]]; then
75+
if [[ $FLAGS_regencache -eq $FLAGS_TRUE && "$pkg" == */* && "$pkg" != metadata/glsa ]]; then
7676
egencache --repo=portage-stable --update "$pkg"
7777
git add -A "metadata/md5-cache/${pkg}-*"
7878
fi

0 commit comments

Comments
 (0)