[proftpd-dfsg] 01/01: Removed now obsolete upgrading code

Francesco Lovergine frankie at moszumanska.debian.org
Fri Jan 5 09:01:44 UTC 2018


This is an automated email from the git hooks/post-receive script.

frankie pushed a commit to branch master
in repository proftpd-dfsg.

commit eb058cffaadbedf2029e97770fb426c659d9350d
Author: Francesco Paolo Lovergine <frankie at debian.org>
Date:   Fri Jan 5 10:01:23 2018 +0100

    Removed now obsolete upgrading code
---
 debian/changelog             |  1 +
 debian/proftpd-basic.preinst | 10 ----------
 2 files changed, 1 insertion(+), 10 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index b7aebb4..d3318bf 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -17,6 +17,7 @@ proftpd-dfsg (1.3.5e-1) UNRELEASED; urgency=medium
   * Policy bumped to 4.1.3.
   		- Recommends proftpd-doc as for 4.0.0.
         - Do not invoke /etc/init.d script even as fallback as for 4.0.0 
+  * Removed obsolete code to manage migration from version 1.2.9 in preinst.
 
  -- Francesco Paolo Lovergine <frankie at debian.org>  Fri, 07 Jul 2017 12:06:53 +0200
 
diff --git a/debian/proftpd-basic.preinst b/debian/proftpd-basic.preinst
index 9a1d2e3..893765d 100644
--- a/debian/proftpd-basic.preinst
+++ b/debian/proftpd-basic.preinst
@@ -11,16 +11,6 @@ set -e
 
 if [ "$1" = "upgrade" ]; then
      invoke-rc.d proftpd stop >/dev/null 2>&1 || true 
-     # Scoreboard file format changed in 1.2.9
-     # Now stopping all inetd sessions and removing it to ensure
-     # a clean upgrade
-     if dpkg --compare-versions "$2" lt "1.2.9-1"; then
-            if [ `pgrep proftpd|wc -l` -ne 0 ]; then
-                    pkill proftpd
-                    sleep 2
-            fi
-            rm -f /run/proftpd/proftpd.scoreboard
-     fi
 fi
 
 exit 0

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-proftpd/proftpd-dfsg.git



More information about the Pkg-proftpd-maintainers mailing list