bugGNU Octave - Bugs: bug #47102, pkg install -forge BAD_PKG...

 
 

bug #47102: pkg install -forge BAD_PKG produces unhelpful error message

Submitted by:  Rik <rik5>
Submitted on:  Tue 09 Feb 2016 06:47:37 PM UTC  
 
Category: Octave FunctionSeverity: 2 - Minor
Priority: 5 - NormalItem Group: Regression
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 11 Feb 2016 01:47:36 AM UTC, comment #2:

I'm sure the HTML will only change again in the future. I modified the code to use the fixed version of the package list at list_packages.php, which will not change.

I also added a much better, although still crude, similarity matching algorithm in case the user has made a typo. The whole changeset is at http://hg.savannah.gnu.org/hgweb/octave/rev/101489515a70.

For bug #39479, I can change Octave quickly if someone on the Octave-Forge site can create a new fixed web page with package names and versions. The web site shouldn't be list_packages.php because that is already fixed for a different usage.

Rik <rik5>
Project Administrator
Wed 10 Feb 2016 11:03:00 PM UTC, comment #1:

The id="pkgname" attribute got moved from <div> to <h3> during redesign of the packages page. Also the CSS class names have changed.

I didn't know that the site is parsed like that in Octave.

We could either change the HTML code to make the regexp work again, or we change the Octave code to use http://octave.sourceforge.net/list_packages.php instead.

Regarding #39479, the list_packages.php already serves as a (machine readable) list of packages and could be extended to also contain version information, which would then be used to make “pkg -forge list” faster.

https://sourceforge.net/p/octave/project-web/ci/default/tree/htdocs/list_packages.php

Oliver Heimlich <oheim>
Tue 09 Feb 2016 06:47:37 PM UTC, original submission:

I accidentally used a package name that does not exist on Octave-Forge. Instead of getting a message that the name simply doesn't exist I got something weird about cells.

The problem is in scripts/pkg/private/get_forge_pkg.m.

The problem seems to be that the website has changed how it presents packages and the regexp no longer matches.

Maybe there needs to be a place where the list of packages is kept in a very simple machine-readable format, rather than HTML?

This would also help resolve bug #39479.

Rik <rik5>
Project Administrator

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 11 Feb 2016 01:47:36 AM UTCrik5StatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Tue 09 Feb 2016 06:47:59 PM UTCrik5Dependencies-=>Depends on bugs #39479

    Back to the top


    Powered by Savane 3.1-cleanup1