mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-08 13:36:58 +02:00
Merge pull request #84 from flatcar-linux/kai/no-metadata-md5-cache
update_ebuilds: Do not generate metadata/md5-cache files
This commit is contained in:
commit
d8519f4b5c
@ -20,8 +20,6 @@ DEFINE_string rsync "rsync://rsync.gentoo.org/gentoo-portage" \
|
||||
"Rsync location for gentoo-portage to use with --portage=rsync"
|
||||
DEFINE_boolean commit ${FLAGS_FALSE} \
|
||||
"Commit all changes after updating portage-stable."
|
||||
DEFINE_boolean regencache ${FLAGS_TRUE} \
|
||||
"Regenerate cache for updated ebuilds."
|
||||
|
||||
|
||||
# Parse flags
|
||||
@ -38,11 +36,6 @@ if [[ -z "$*" ]]; then
|
||||
die "No packages provided"
|
||||
fi
|
||||
|
||||
# eclass updates impact coreos-overlay too, use update_metadata.
|
||||
if [[ "$*" == *eclass* ]]; then
|
||||
FLAGS_regencache=${FLAGS_FALSE}
|
||||
fi
|
||||
|
||||
cd "$FLAGS_portage_stable"
|
||||
|
||||
for pkg in "$@"; do
|
||||
@ -75,11 +68,6 @@ for pkg in "$@"; do
|
||||
|
||||
git add -A "$pkg"
|
||||
|
||||
# Sync up the ebuild metadata cache
|
||||
if [[ $FLAGS_regencache -eq $FLAGS_TRUE && "$pkg" == */* && "$pkg" != metadata/glsa ]]; then
|
||||
egencache --repo=portage-stable --update "$pkg"
|
||||
git add -A "metadata/md5-cache/${pkg}-*"
|
||||
fi
|
||||
done
|
||||
|
||||
if [[ $FLAGS_commit -eq $FLAGS_TRUE ]]; then
|
||||
@ -98,6 +86,3 @@ else
|
||||
git status
|
||||
fi
|
||||
|
||||
if [[ "$*" == *eclass* ]]; then
|
||||
info "Please run update_metadata to update cache in all overlays."
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user