Summary: | nethack record, logfile and perm files get overwritten on update/re-install | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Giblets <gentoo-bugs> |
Component: | [OLD] Games | Assignee: | Gentoo Games <games> |
Status: | RESOLVED FIXED | ||
Severity: | minor | CC: | gentoo |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 14321 | ||
Bug Blocks: |
Description
Giblets
2003-02-26 17:23:41 UTC
I noticed that the nethack version number gets stored in the record file, so I had a look at the source code and found that: record - this is geared up to deal with storing and reading scores from different versions. logfile - only gets written to, never read. perm - this file just gets linked to. So, I don't think these files should ever get overwritten if they already exist. Don't know enough about emerge to know if this removes the dependency on bug #14321. Nethack has a 'make update' process that is designed to protect the record, logfile, etc. when installing over an exist nethack install. Perhaps the ebuild should be changed to test for the existence of a nethack install. (Does portage presently have an api to do this from inside an ebuild?) If the ebuild exists, it should do a 'make update', and not a 'make install'. ok, i updated the ebuild so that if those files exist then the files in ${D} will be renamed with a .sample at the end |