summaryrefslogtreecommitdiff
diff options
authorMarcelo Jorge Vieira (metal) <metal@debian.org>2013-07-29 11:36:13 -0300
committergit-ubuntu importer <ubuntu-devel-discuss@lists.ubuntu.com>2013-07-30 04:15:46 +0000
commit7aeabbcaf1b3f0ccab6a25e7c13890a8b6a494e3 (patch)
tree98deeca4a6db91a025d1ce0620ed62b727593a51
parent4dfacdafe5f2e00a3d6383266e707ea90ba6353b (diff)
parent8896e015a9443c362b4df89339fa3bf4b4d536ba (diff)
Imported using git-ubuntu import.
-rw-r--r--debian/changelog8
-rw-r--r--debian/javascript-common.postinst8
2 files changed, 14 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog
index 03b5257..1d2fa62 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+javascript-common (11) unstable; urgency=low
+
+ * Test if obsolete /etc/apache2/conf.d/ was removed by user before
+ touching it (Closes: #718249); Thanks Jean-Michel Vourgère.
+ * Improving clean up for fresh installs.
+
+ -- Marcelo Jorge Vieira (metal) <metal@debian.org> Mon, 29 Jul 2013 11:36:13 -0300
+
javascript-common (10) unstable; urgency=low
* Downgrading webservers relation from 'recommends' to 'suggests'
diff --git a/debian/javascript-common.postinst b/debian/javascript-common.postinst
index 66283a6..968d4f9 100644
--- a/debian/javascript-common.postinst
+++ b/debian/javascript-common.postinst
@@ -59,9 +59,13 @@ esac
#DEBHELPER#
# Will make piupart more happy on upgrades
-if [ "$1" = "configure" ] && dpkg --compare-versions "$2" lt "9"
+if [ "$1" = "configure" ] && dpkg --compare-versions "$2" lt-nl "9"
then
- rmdir --ignore-fail-on-non-empty /etc/apache2/conf.d
+ # Remove old /etc/apache2/conf.d if empty and not already removed by user:
+ if [ -d /etc/apache2/conf.d ]
+ then
+ rmdir --ignore-fail-on-non-empty /etc/apache2/conf.d
+ fi
# This is a work around bug #584185:
if [ -d /etc/javascript-common ]
then