octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #57545] [octave forge] downloading packages wi


From: Kai Torben Ohlhus
Subject: [Octave-bug-tracker] [bug #57545] [octave forge] downloading packages with wget results in incorrect package filenames
Date: Mon, 6 Jan 2020 22:13:02 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36

Update of bug #57545 (project octave):

                Severity:              3 - Normal => 1 - Wish               
                Priority:              5 - Normal => 3 - Low                
                  Status:                    None => Works For Me           
                 Summary: downloading packages with wget results in incorrect
package filenames => [octave forge] downloading packages with wget results in
incorrect package filenames

    _______________________________________________________

Follow-up Comment #1:

This seems to be a general limitation of SourceForge.  In Octave's `pkg` tool
the `url` for the download and the "expected filename" `local_file`) has to be
generated using two private functions `get_forge_download()` and
`get_forge_pkg()` to finally call something like:


[files, succ] = urlwrite (url, local_file);


https://hg.savannah.gnu.org/hgweb/octave/file/248b7b8f5a65/scripts/pkg/pkg.m#l409

Either you mimic Octave's pkg behavior, or I recently read about
`--content-disposition` at https://stackoverflow.com/a/27816321/3778706


wget --content-disposition
https://octave.sourceforge.io/download.php?package=arduino-0.4.0.tar.gz


If you are fine with this workaround, this item can be closed.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?57545>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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