1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
Description: Disable the auto-updater
It is meaningless in the presence of a package manager.
Author: Sébastien Villemot <sebastien@debian.org>
Forwarded: not-needed
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);
ipp = ipp.addParamValue(ipp, 'encoding' , '', @ischar);
ipp = ipp.addParamValue(ipp, 'standalone', false, @islogical);
@@ -345,11 +345,7 @@ function matlab2tikz(varargin)
% 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
% print some version info to the screen
|