| Summary: | games eclass should handle /var/games better | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Mr. Bones. (RETIRED) <mr_bones_> |
| Component: | [OLD] Games | Assignee: | Gentoo Games <games> |
| Status: | RESOLVED FIXED | ||
| Severity: | critical | CC: | radek |
| Priority: | High | ||
| Version: | 1.2 | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Mr. Bones. (RETIRED)
2003-10-23 11:45:33 UTC
Maybe, this could be handled by the portage's CFGPRO feature. (The one that keeps out /etc's untouched) Radek should be all set now ...
local f=""
for f in `find ${D}/${GAMES_STATEDIR} -type f -printf '%P ' 2>/dev/null`
; do
if [ -e "${ROOT}/${GAMES_STATEDIR}/${f}" ] ; then
cp -p "${ROOT}/${GAMES_STATEDIR}/${f}" "${D}/${GAMES_STATEDIR}/${f}"
touch "${D}/${GAMES_STATEDIR}/${f}"
fi
done
basically it scans ${D}/${GAMES_STATEDIR}, sees if there are any files that
will be overwritten, and if so, copies the version from / to ${D} and updates
it
|