From 7509d4487c35ed81569f4a66d7174ff8b877641b Mon Sep 17 00:00:00 2001 From: Luis Ressel Date: Sun, 31 Jan 2016 20:30:07 +0100 Subject: [PATCH] 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. --- .../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 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}" . && -- 2.26.2