[Pkg-octave-commit] [matlab2tikz] 11/15: disable-updater.patch: refresh patch.

Sébastien Villemot sebastien at debian.org
Wed Jan 4 16:18:55 UTC 2017


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

sebastien pushed a commit to branch master
in repository matlab2tikz.

commit 88f963f331583deb52c5ed6a5cb0bdd09ee46283
Author: Sébastien Villemot <sebastien at debian.org>
Date:   Wed Jan 4 17:00:50 2017 +0100

    disable-updater.patch: refresh patch.
    
    Gbp-Dch: Ignore
---
 debian/patches/disable-updater.patch | 53 +++++++++++++++++-------------------
 1 file changed, 25 insertions(+), 28 deletions(-)

diff --git a/debian/patches/disable-updater.patch b/debian/patches/disable-updater.patch
index 2c1f3d4..8a669a7 100644
--- a/debian/patches/disable-updater.patch
+++ b/debian/patches/disable-updater.patch
@@ -7,34 +7,31 @@ Last-Update: 2014-02-18
 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
 --- a/src/matlab2tikz.m
 +++ b/src/matlab2tikz.m
-@@ -97,7 +97,7 @@ function matlab2tikz(varargin)
- %   taking a peek at what the figure will look like. (default: false)
- %
- %   MATLAB2TIKZ('checkForUpdates',BOOL,...) determines whether to automatically
--%   check for updates of matlab2tikz. (default: true)
-+%   check for updates of matlab2tikz. (default: false)
- %
- %   Example
- %      x = -pi:pi/10:pi;
-@@ -202,7 +202,7 @@ function matlab2tikz(varargin)
-   ipp = ipp.addParamValue(ipp, 'strictFontSize', false, @islogical);
-   ipp = ipp.addParamValue(ipp, 'showInfo', true, @islogical);
-   ipp = ipp.addParamValue(ipp, 'showWarnings', true, @islogical);
--  ipp = ipp.addParamValue(ipp, 'checkForUpdates', true, @islogical);
-+  ipp = ipp.addParamValue(ipp, 'checkForUpdates', false, @islogical);
+@@ -114,7 +114,7 @@ function matlab2tikz(varargin)
+     %   taking a peek at what the figure will look like. (default: false)
+     %
+     %   MATLAB2TIKZ('checkForUpdates',BOOL,...) determines whether to automatically
+-    %   check for updates of matlab2tikz. (default: true (if not using git))
++    %   check for updates of matlab2tikz. (default: false)
+     %
+     %   MATLAB2TIKZ('semanticLineWidths',CELLMATRIX,...) allows you to customize
+     %   the mapping of semantic "line width" values.
+@@ -188,7 +188,7 @@ function matlab2tikz(varargin)
+     ipp = ipp.addParamValue(ipp, 'strictFontSize', false, @islogical);
+     ipp = ipp.addParamValue(ipp, 'showInfo', true, @islogical);
+     ipp = ipp.addParamValue(ipp, 'showWarnings', true, @islogical);
+-    ipp = ipp.addParamValue(ipp, 'checkForUpdates', isempty(VCID), @islogical);
++    ipp = ipp.addParamValue(ipp, 'checkForUpdates', false, @islogical);
  
-   ipp = ipp.addParamValue(ipp, 'encoding' , '', @ischar);
-   ipp = ipp.addParamValue(ipp, 'standalone', false, @islogical);
-@@ -345,11 +345,7 @@ function matlab2tikz(varargin)
+     ipp = ipp.addParamValue(ipp, 'semanticLineWidths', NaN, @isValidSemanticLineWidthDefinition);
  
-   % Conditionally check for a new matlab2tikz version outside version control
-   if m2t.cmdOpts.Results.checkForUpdates && isempty(VCID)
--      updater(m2t.name, ...
--              m2t.website, ...
--              m2t.version, ...
--              m2t.cmdOpts.Results.showInfo, ...
--              m2t.env)
-+      warning('Auto-updater not available. Please use the package manager instead.')
-   end
+@@ -335,7 +335,8 @@ function matlab2tikz(varargin)
  
-   % print some version info to the screen
+     %% Check for a new matlab2tikz version outside version control
+     if m2t.args.checkForUpdates
+-        m2tUpdater(m2t.about, m2t.args.showInfo);
++        warning('Auto-updater not available. Please use the package manager instead.')
++        return
+     end
+ 
+ end

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



More information about the Pkg-octave-commit mailing list