commit:     7509d4487c35ed81569f4a66d7174ff8b877641b
Author:     Luis Ressel <aranea <AT> aixah <DOT> de>
AuthorDate: Sun Jan 31 19:30:07 2016 +0000
Commit:     Ian Delaney <idella4 <AT> gentoo <DOT> org>
CommitDate: Sun Feb  7 20:48:58 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7509d448

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.

 games-roguelike/nethack/nethack-3.6.0-r2.ebuild | 21 ---------------------
 1 file changed, 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 c87adad..7f8d2be 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}" . &&

Reply via email to