changeset 26856:65c036b78040

pkg.m: Fix regression installing pkgs from URL (bug #55843). * pkg.m: Calculate index in to files variable with strcmp.
author Rik <rik@octave.org>
date Wed, 06 Mar 2019 09:51:21 -0800
parents 156bd21bf6bd
children 0adb232f93b9
files scripts/pkg/pkg.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/pkg/pkg.m	Wed Mar 06 08:23:54 2019 +0100
+++ b/scripts/pkg/pkg.m	Wed Mar 06 09:51:21 2019 -0800
@@ -467,7 +467,7 @@
                   error ("pkg: file not found: %s", file);
                 endif
               endif
-              files{file_idx} = local_files{end};
+              files{strcmp (files, file)} = local_files{end};
 
             endfor
           endif