comparison scripts/pkg/pkg.m @ 31548:c8ad083a5802 stable

maint: Clean up m-files before Octave 8.1 release. * external.txi, oop.txi, Table.h, documentation.cc, gui-preferences-ed.h, lo-specfun.cc, range.tst : Eliminate triple newlines. * Map.m, MemoizedFunction.m, delaunayn.m, inputParser.m, __publish_latex_output__.m, publish.m, unpack.m, fminbnd.m, __add_default_menu__.m, gammainc.m, gallery.m, hadamard.m, weboptions.m: Add newline after keyword "function" or before keyword "endfunction" for readability. * getaudiodata.m, pkg.m : Add semicolon to end of line for error() statement. * movegui.m: Combine mutliple calls to set() into one for performance. * __unimplemented__.m (missing_functions): Remove missing functions that have been implemented. * __vectorize__.m, check_default_input.m, betaincinv.m, gammaincinv.m: Remove semicolon at end of line with "function" declaration. * weboptions.m: Remove semicolon at end of line with "if" keyword. * integrate_adaptive.m, factor.m: Use keyword "endif" rather than bare "end".
author Rik <rik@octave.org>
date Fri, 25 Nov 2022 21:23:54 -0800
parents 96f751f8392c
children 597f3ee61a48
comparison
equal deleted inserted replaced
31541:fd8c0df759bb 31548:c8ad083a5802
758 ## If -global or -local, limit updates to global or local list pkgs 758 ## If -global or -local, limit updates to global or local list pkgs
759 globalflag = any (strcmp (varargin, "-global")); 759 globalflag = any (strcmp (varargin, "-global"));
760 localflag = any (strcmp (varargin, "-local")); 760 localflag = any (strcmp (varargin, "-local"));
761 if (globalflag || localflag) 761 if (globalflag || localflag)
762 if (globalflag && localflag) 762 if (globalflag && localflag)
763 error ("pkg: cannot specify both global and local options.") 763 error ("pkg: cannot specify both global and local options.");
764 elseif (globalflag) 764 elseif (globalflag)
765 [~, installed_pkgs_lst] = installed_packages (local_list, global_list); 765 [~, installed_pkgs_lst] = installed_packages (local_list, global_list);
766 else 766 else
767 [installed_pkgs_lst, ~] = installed_packages (local_list, global_list); 767 [installed_pkgs_lst, ~] = installed_packages (local_list, global_list);
768 endif 768 endif