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

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

[Octave-bug-tracker] [bug #55798] Support octave packages with "-dev" in


From: Colin Macdonald
Subject: [Octave-bug-tracker] [bug #55798] Support octave packages with "-dev" in version
Date: Thu, 28 Feb 2019 15:45:32 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:65.0) Gecko/20100101 Firefox/65.0

URL:
  <https://savannah.gnu.org/bugs/?55798>

                 Summary: Support octave packages with "-dev" in version
                 Project: GNU Octave
            Submitted by: cbm
            Submitted on: Thu 28 Feb 2019 08:45:31 PM UTC
                Category: Documentation
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Documentation
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

TL;DR:

How would you feel about changing [1] to say:


 Version
 
-     Version of the package. A package version must be 3 numbers separated by
dots.
+     Version of the package. A package version is usually 3 numbers separated
by dots.


[1] https://octave.org/doc/v5.1.0/The-DESCRIPTION-File.html:

- - - - - -

It's always bothered me that DESCRIPTION doesn't seem to allow versions like
"0.7.0-dev".


I just tried using "0.7.0-dev".  Nothing horrible happened:



Package Name        | Version   | Installation directory
--------------------+-----------+-----------------------
             bsltl  |     1.1.1 | /home/cbm/octave/bsltl-1.1.1
           control  |     3.1.0 | /home/cbm/octave/control-3.1.0
           doctest *| 0.7.0-dev | /home/cbm/octave/doctest-0.7.0-dev
           general  |     2.1.0 | /home/cbm/octave/general-2.1.0



A quick look at the code of pkg.m suggests it uses "compare_versions", which
does something with such strings:



octave:18> compare_versions ('0.7.0-dev', '0.7.0', '>')
ans = 1
octave:19> compare_versions ('0.7.0', '0.7.0-dev', '<=')
ans = 1
octave:20> compare_versions ('0.7.1', '0.7.0-dev', '>')
ans = 1


I personally prefer the semantics that 0.7.0-dev comes before 0.7.0 but I
could certainly live with the above.

Benefits:

  - users would be able to try a dev version and later upgrade automatically
when the package release came.
  - devs would be able to trust "pkg list" output in bug reports.





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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