bugGNU Octave - Bugs: bug #32559, get_forge_package cannot read...

 
 

bug #32559: get_forge_package cannot read package version

Submitter:  Carlo de Falco <cdf>
Submitted:  Mon 21 Feb 2011 04:25:45 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Other
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 22 Feb 2011 08:42:48 PM UTC, comment #1: 

Patch applied.  Thanks for catching this.

Rik <rik5>
Group administrator
Mon 21 Feb 2011 04:25:45 PM UTC, original submission:  

This bug was introduced by the following changeset:



changeset:   12465:e4dbfe3019b1
user:        Rik <octave@nomad.inbox5.com>
date:        Sat Feb 19 18:21:58 2011 -0800
summary:     Use PCRE regular expressions throughout Octave.


in particular a typo in the RE to extract a package version number from the OF website leads


pkg install -forge <package name>


to fail with the error:


warning: unrecognized escape sequence `d' -- converting to `d'
error: get_forge_pkg: could not read version number from package's page
error: called from:
error:   /opt/octave/3.5/share/octave/3.5.0+/m/pkg/get_forge_pkg.m at line 49, column 7
error:   /opt/octave/3.5/share/octave/3.5.0+/m/pkg/pkg.m at line 2384, column 15
error:   /opt/octave/3.5/share/octave/3.5.0+/m/pkg/pkg.m at line 345, column 32


The attached (trivial) patch solves the issue for me.

c.

Carlo de Falco <cdf>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #22747:  getforgepkg.patch added by cdf (1KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by cdf (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-02-22 rik5 StatusNone Fixed
        Open/ClosedOpen Closed
    2011-02-21 cdf Attached File- Added getforgepkg.patch, #22747

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code