Skip to content

Commit 89511ad

Browse files
committed
pkg: Fix string processing, reduce verbosity
* get_validated_pkg_list.m: Fix index values in string processing, remove a diagnostic message that gets printed too many times during package updates.
1 parent 8c43fd5 commit 89511ad

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

scripts/pkg/private/get_validated_pkg_list.m

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@
4747
if (! isempty (__pkg__) && ! force_refresh)
4848
## This function has been called already and __pkg__ exists.
4949
## No need to query the server again unless refresh is forced.
50-
if (verbose)
51-
disp ("pkg: using cached package list from memory");
52-
endif
5350
retval = __pkg__;
5451
return;
5552
endif
@@ -83,8 +80,8 @@
8380
for i = 1:numel (cache_files)
8481
fname = cache_files(i).name;
8582
## Extract timestamp: packages_yyyymmddHHMM.json
86-
if (length (fname) == 25 && strcmp (fname(1:9), "packages_") &&
87-
strcmp (fname(22:25), ".json"))
83+
if (length (fname) == 26 && strcmp (fname(1:9), "packages_") &&
84+
strcmp (fname(22:26), ".json"))
8885
timestamp_str = fname(10:21);
8986

9087
try

0 commit comments

Comments
 (0)