help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Workaround for "build_packages.m" bug


From: Helios de Rosario
Subject: Workaround for "build_packages.m" bug
Date: Thu, 15 Oct 2015 13:27:25 +0200

A known bug of the Octave bundled installation for Windows, is that the
script "build_packages.m" in the "src" folder had some package numbers
that do not coincide with the ones that were precompiled.

To prevent this issue in future releases, the script might be tweaked
so that it is not necessary to specify what is the number of the package
version to be installed in each line, only its name (and the line number
would be inferred from the packages copied in the "src" folder):

These lines inside the function "try_install" would do the trick.

packages_list = {dir("*.tar.gz").name};
matches = regexp(packages_list, ["^", pkgname,
"-\\d+\\.\\d+\\.\\d+\\.tar\\.gz$"]);
pkg_position = find(!cellfun(@isempty, matches), 1);
if !isempty(pkg_position)
  pkgname = packages_list{pkg_position};
endif




-- 
Helios de Rosario Martínez
 
R&D Projects.
Lead Researcher - Biomechanical Assessment
 
Skype: "heliosderosario"


ibv.org/anuario2014
Conoce la actividad más destacada del IBV en 2014
______________________________

INSTITUTO DE BIOMECÁNICA DE VALENCIA
Universidad Politécnica de Valencia • Edificio 9C
Camino de Vera s/n • 46022 VALENCIA (ESPAÑA)
Tel. +34 961111170- +34 610567200 • Fax +34 96 387 91 69
www.ibv.org

Antes de imprimir este e-mail piense bien si es necesario hacerlo.
En cumplimiento de la Ley Orgánica 15/1999 reguladora de la Protección
de Datos de Carácter Personal, le informamos de que el presente mensaje
contiene información confidencial, siendo para uso exclusivo del
destinatario arriba indicado. En caso de no ser usted el destinatario
del mismo le informamos que su recepción no le autoriza a su divulgación
o reproducción por cualquier medio, debiendo destruirlo de inmediato,
rogándole lo notifique al remitente.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]