2016-10-16 15:59:07 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# set this only
|
|
|
|
reponame="hasufell-binhost"
|
|
|
|
|
|
|
|
|
|
|
|
if [[ ${CAVE_PERFORM_CMDLINE_destination} == ${reponame} ]] ; then
|
|
|
|
shopt -s nullglob
|
|
|
|
|
|
|
|
repo="$(${CAVE} print-repository-metadata --format '%v' --raw-name location ${reponame})"
|
|
|
|
bins="$(${CAVE} print-repository-metadata --format '%v' --raw-name distdir ${reponame})"
|
|
|
|
|
|
|
|
good_files=(
|
|
|
|
$(for pkg in "${repo}/packages/${CATEGORY}/${PN}/"*".pbin-1+exheres-0" ; do . "${pkg}" ; basename "${BINARY_URI}" ; done)
|
|
|
|
)
|
|
|
|
|
2017-03-12 21:35:39 +00:00
|
|
|
for file in "${bins}"/${reponame}--${CATEGORY}--${PN}-[0-9]*.tar.bz2 "${bins}"/${reponame}--${CATEGORY}--${PN}-scm-*.tar.bz2; do
|
2016-10-16 15:59:07 +00:00
|
|
|
file=${file##*/}
|
|
|
|
if ! echo "${good_files[@]}" | grep -q "${file}" ; then
|
|
|
|
rm -vf "${bins}/${file}"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
|