[Pkg-octave-commit] [octave] 01/01: d/octave.postinst: run /usr/bin/octave explicitly to build package cache.

Mike Miller mtmiller at moszumanska.debian.org
Tue Aug 22 22:25:57 UTC 2017


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

mtmiller pushed a commit to branch master
in repository octave.

commit 9146f240b137af1983653ac50bfb34bcf93a5c1b
Author: Mike Miller <mtmiller at debian.org>
Date:   Tue Aug 22 15:16:06 2017 -0700

    d/octave.postinst: run /usr/bin/octave explicitly to build package cache.
    
    Ensures that our instance of octave has its package cache updated
    correctly, rather than whichever octave happens to be first in $PATH.
---
 debian/octave.postinst | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/debian/octave.postinst b/debian/octave.postinst
index 8ab28f7..0519857 100644
--- a/debian/octave.postinst
+++ b/debian/octave.postinst
@@ -7,15 +7,18 @@ set -e
 #DEBHELPER#
 
 rebuild_pkg_database () {
-    octave --silent --no-history --no-init-file --no-window-system	\
-	   --eval "pkg ('rebuild');"
+    # Invoke /usr/bin/octave explicitly to build the system package cache.
+    # Ensures that our instance of octave has its package cache updated
+    # correctly, rather than whichever octave happens to be first in $PATH.
+    /usr/bin/octave --silent --no-history --no-init-file --no-window-system \
+                    --eval "pkg ('rebuild');"
 }
 
 case "$1" in
     configure)
-	rebuild_pkg_database
-	;;
-    
+        rebuild_pkg_database
+        ;;
+
     triggered)
         rebuild_pkg_database
         ;;

-- 
Alioth's /home/groups/pkg-octave/bin/git-commit-notice on /srv/git.debian.org/git/pkg-octave/octave.git



More information about the Pkg-octave-commit mailing list