[Python-modules-commits] [jupyter-notebook] 01/01: Avoid (harmlessly) trying to delete /etc

Gordon Ball chronitis-guest at moszumanska.debian.org
Thu Dec 15 15:36:20 UTC 2016


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

chronitis-guest pushed a commit to branch master
in repository jupyter-notebook.

commit b8844e56af2604b1f688be754621ea0a00e2ab3a
Author: Gordon Ball <gordon at chronitis.net>
Date:   Thu Dec 15 16:36:11 2016 +0100

    Avoid (harmlessly) trying to delete /etc
---
 debian/changelog                  | 2 +-
 debian/pythonX-notebook.postrm.in | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index bc09b40..f5c7c9a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,6 @@
 jupyter-notebook (4.2.3-4) UNRELEASED; urgency=medium
 
-  * Only create nbconfig dir once in postinst
+  * Clean up handling of the /etc/jupyter/nbconfig dir in maintscripts
 
  -- Gordon Ball <gordon at chronitis.net>  Thu, 15 Dec 2016 16:28:14 +0100
 
diff --git a/debian/pythonX-notebook.postrm.in b/debian/pythonX-notebook.postrm.in
index 4e89749..6596917 100644
--- a/debian/pythonX-notebook.postrm.in
+++ b/debian/pythonX-notebook.postrm.in
@@ -25,7 +25,8 @@ case "$1" in
             for x in NBSECTIONS; do
                 rm -f "/etc/jupyter/nbconfig/$x.json"
             done
-            rmdir -p "/etc/jupyter/nbconfig" || true
+            rmdir "/etc/jupyter/nbconfig" || true
+            rmdir "/etc/jupyter" || true
         else
             echo >&2 "SELF-notebook postrm: not removing /etc/jupyter/nbconfig/*.json because OTHER-notebook is still installed"
         fi

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/jupyter-notebook.git



More information about the Python-modules-commits mailing list