File: proper-path-handling.diff

package info (click to toggle)
plplot 5.10.0%2Bdfsg2-0.4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 25,792 kB
  • ctags: 13,517
  • sloc: ansic: 83,001; xml: 27,081; ada: 18,878; cpp: 15,966; tcl: 11,651; python: 7,075; f90: 7,058; ml: 6,974; java: 6,665; perl: 5,029; sh: 2,208; makefile: 210; lisp: 75; sed: 25; fortran: 7
file content (19 lines) | stat: -rw-r--r-- 877 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Proper use of the rmpath function
Author: Rafael Laboissiere <rafael@laboissiere.net>
Last-Update: 2012-03-31

Index: plplot-5.9.10/bindings/octave/PLplot/toggle_plplot_use.m
===================================================================
--- plplot-5.9.10.orig/bindings/octave/PLplot/toggle_plplot_use.m	2013-10-01 13:05:57.927300532 +0100
+++ plplot-5.9.10/bindings/octave/PLplot/toggle_plplot_use.m	2013-10-01 13:05:57.915300532 +0100
@@ -39,9 +39,7 @@
 use_plplot_path = plplot_octave_path;
 plplot_path_to_remove = char(strsplit(genpath(use_plplot_path),pathsep));
 for use_plplot_i=1:size(plplot_path_to_remove)(1)
-  if (findstr(path,deblank(plplot_path_to_remove(use_plplot_i,:))) > 0)
-    rmpath(deblank(plplot_path_to_remove(use_plplot_i,:)));
-  endif
+  rmpath(plplot_path_to_remove{use_plplot_i});
 endfor
 
 if (strcmp (use_plplot_state, "on"))