[lintian] 01/01: d/post{inst,rm}: Remove - unused
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository lintian.
commit 83a3d3835b10efffcca6cfa65a421246752aeff9
Author: Niels Thykier <niels@thykier.net>
Date: Sat Jan 23 11:45:28 2016 +0000
d/post{inst,rm}: Remove - unused
Signed-off-by: Niels Thykier <niels@thykier.net>
---
debian/changelog | 3 +++
debian/postinst | 36 ------------------------------------
debian/postrm | 17 -----------------
3 files changed, 3 insertions(+), 53 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index d66edb0..8824407 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,9 @@ lintian (2.5.41) UNRELEASED; urgency=medium
* data/spelling/corrections*:
+ [JW] Add more corrections.
+ * debian/post{inst,rm}:
+ + [NT] Remove obsolete maintainer scripts.
+
* lib/Lintian/Collect/Source.pm:
+ [JW] Fix typo.
* lib/Lintian/Lab/Entry.pm:
diff --git a/debian/postinst b/debian/postinst
deleted file mode 100644
index 77c47fc..0000000
--- a/debian/postinst
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/bin/sh
-set -e
-
-LAB_DIRS='binary source udeb info changes'
-
-non_empty_dir() {
- dir="$1"
- [ -d "$dir" ] && [ "$(ls -A "$dir")" ]
-}
-
-if [ "$1" = "configure" ]; then
- if [ -d /var/spool/lintian ]; then
- IN_USE=no
- HAS_LAB_FOLDER=no
- for DIR in $LAB_DIRS ; do
- if [ -d "/var/spool/lintian/$DIR" ] ; then
- HAS_LAB_FOLDER=yes
- fi
- if non_empty_dir "/var/spool/lintian/$DIR" ; then
- IN_USE=yes
- break
- fi
- done
- if [ "$IN_USE" = "no" ] && [ "$HAS_LAB_FOLDER" = "yes" ]; then
- echo "Removing empty lintian lab in /var/spool/lintian"
- for DIR in $LAB_DIRS ; do
- if [ -d "/var/spool/lintian/$DIR" ]; then
- rmdir "/var/spool/lintian/$DIR"
- fi
- done
- rmdir --ignore-fail-on-non-empty /var/spool/lintian
- fi
- fi
-fi
-
-#DEBHELPER#
diff --git a/debian/postrm b/debian/postrm
deleted file mode 100755
index d2fe37a..0000000
--- a/debian/postrm
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-set -e
-
-LAB_DIRS='binary source udeb info changes'
-
-# Try to purge the default lab if it looks like a lab. If the user configured
-# a lab for some other location, currently we don't do anything about that.
-# Arguably we should parse lintianrc and remove that lab, but I'm not sure
-# that's a good idea.
-if [ "$1" = "purge" ]; then
- for DIR in $LAB_DIRS ; do
- rm -rf "/var/spool/lintian/$DIR"
- done
- [ ! -d /var/spool/lintian ] || rmdir --ignore-fail-on-non-empty /var/spool/lintian
-fi
-
-#DEBHELPER#
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: