diff options
author | Luis Ressel <aranea@aixah.de> | 2016-01-31 20:30:07 +0100 |
---|---|---|
committer | Luis Ressel <aranea@aixah.de> | 2016-02-07 21:48:58 +0100 |
commit | 7509d4487c35ed81569f4a66d7174ff8b877641b (patch) | |
tree | aa1072b9beebb4bbcfc9b7cf0cfb9012292aa84c /games-roguelike | |
parent | games-roguelike/nethack: Bump to EAPI 6 (diff) | |
download | gentoo-7509d4487c35ed81569f4a66d7174ff8b877641b.tar.gz gentoo-7509d4487c35ed81569f4a66d7174ff8b877641b.tar.bz2 gentoo-7509d4487c35ed81569f4a66d7174ff8b877641b.zip |
games-roguelike/nethack: Remove migration code
Remove the migration logic handling updates from <3.4.3-r3. It's been in
place for over six months, that should be enough.
Diffstat (limited to 'games-roguelike')
-rw-r--r-- | games-roguelike/nethack/nethack-3.6.0-r2.ebuild | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/games-roguelike/nethack/nethack-3.6.0-r2.ebuild b/games-roguelike/nethack/nethack-3.6.0-r2.ebuild index c87adad7bfe4..7f8d2befda1f 100644 --- a/games-roguelike/nethack/nethack-3.6.0-r2.ebuild +++ b/games-roguelike/nethack/nethack-3.6.0-r2.ebuild @@ -119,30 +119,9 @@ src_install() { fperms g+s "${HACKDIR}/nethack" } -pkg_preinst() { - if has_version "<${CATEGORY}/${PN}-3.4.3-r3" ; then - migration=true - - # preserve STATEDIR/{logfile,record} - # (previous ebuild rev mistakenly removes it) - for f in "${ROOT}/${STATEDIR}/"{logfile,record} ; do - if [[ -e "$f" ]] ; then - cp "$f" "$T" || die "Failed to preserve ${ROOT}/${STATEDIR} files" - else - touch "$T/$f" || die "Failed to preserve ${ROOT}/${STATEDIR} files" - fi - done - fi -} - pkg_postinst() { cd "${ROOT}/${STATEDIR}" || die "Failed to enter ${STATEDIR} directory" - if [[ -v migration ]] ; then - cp "$T/"{logfile,record} . || - die "Failed to preserve ${ROOT}/${STATEDIR} files" - fi - touch logfile perm record xlogfile || die "Failed to create log files" chown -R root:"${NETHACK_GROUP}" . && |