[Python-modules-commits] [jupyter-notebook] 01/01: Reorder mkdir in postinst

Gordon Ball chronitis-guest at moszumanska.debian.org
Thu Dec 15 15:29:42 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 a091493a8f16c82570ed224ba77f887a67e16b1e
Author: Gordon Ball <gordon at chronitis.net>
Date:   Thu Dec 15 16:29:37 2016 +0100

    Reorder mkdir in postinst
---
 debian/changelog                    | 6 ++++++
 debian/pythonX-notebook.postinst.in | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 0efc49b..bc09b40 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+jupyter-notebook (4.2.3-4) UNRELEASED; urgency=medium
+
+  * Only create nbconfig dir once in postinst
+
+ -- Gordon Ball <gordon at chronitis.net>  Thu, 15 Dec 2016 16:28:14 +0100
+
 jupyter-notebook (4.2.3-3) unstable; urgency=medium
 
   * Team upload.
diff --git a/debian/pythonX-notebook.postinst.in b/debian/pythonX-notebook.postinst.in
index 6773fb6..00a04df 100644
--- a/debian/pythonX-notebook.postinst.in
+++ b/debian/pythonX-notebook.postinst.in
@@ -29,8 +29,8 @@ set -e
 
 case "$1" in
     configure)
+        mkdir -p "/etc/jupyter/nbconfig"
         for x in NBSECTIONS; do
-            mkdir -p "/etc/jupyter/nbconfig"
             if [ ! -e "/etc/jupyter/nbconfig/$x.json" ]; then
                 echo '{}' > "/etc/jupyter/nbconfig/$x.json"
             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