New Tool: Duet V3.xx RCx to apt DSF 2.x.x version mapping



  • Two tools here: https://github.com/DanalEstes/DuetVersions
    Installation instructions on the readme at that link.

    Written in 'shell' and they are probably quite sensitive to EXACT formatting of command results and will therefore break at some point. For now, they provide what I want in mapping releases.

    MAY add a utility that will show the exact command require to regress. Maybe.

    Until then, these two may be handy:

    ./DuetVersion.sh
      Highest Available DuetSoftwareFramework = 2.1.1
    Currently Installed DuetSoftwareFramework = 2.1.1
    
    Dependencies for DSF version 2.1.1 are:
     duetcontrolserver (= 2.1.1)
     duetsd (= 1.0.6)
     duettools (= 2.1.1)
     duetwebserver (= 2.1.0)
     duetwebcontrol (= 2.1.5)
     reprapfirmware (>= 2.1.1-1)
     reprapfirmware (<= 2.1.1-999) )
    
    reprapfirmware apt version 2.1.1-1 is internal version 3.01-RC10
    

    If you specify a number as command line argument, you are asking for that same information on the release that many 'backwards' from the most current.

    ./DuetVersion.sh 15
      Highest Available DuetSoftwareFramework = 2.1.1
    Currently Installed DuetSoftwareFramework = 2.1.1
    
    Command line arg specified to request Release -15 from highest available.
          Highest-15 is DuetSoftwareFramework = 1.2.0.0
    
    Dependencies for DSF version 1.2.0.0 are:
     duetcontrolserver (= 1.2.0.0)
     duetsd (= 1.0.5)
     duettools (= 1.2.0.0)
     duetwebserver (= 1.2.0.0)
     duetwebcontrol (= 2.0.4-1)
     reprapfirmware (>= 1.2.0.0-1)
     reprapfirmware (<= 1.2.0.0-999) )
    
    reprapfirmware apt version 1.2.0.0-1 is internal version 3.0RC1
    

    And... so we don't have to poke through -1, -2, -3, etc, a consolidated list of the DSF to RRF releases:

     ./DuetVersionsAll.sh
    Expect this to take several seconds per line of output.
    
    duetsoftwareframework 2.1.1 contains reprapfirmware version 2.1.1-1 which is internal version 3.01-RC10
    duetsoftwareframework 2.1.0 contains reprapfirmware version 2.1.0-1 which is internal version 3.01-RC9
    duetsoftwareframework 2.0.0 contains reprapfirmware version 2.0.0-1 which is internal version 3.01-RC8
    duetsoftwareframework 1.3.2 contains reprapfirmware version 1.3.2-1 which is internal version 3.01-RC7
    duetsoftwareframework 1.3.1 contains reprapfirmware version 1.3.1-1 which is internal version 3.01-RC6
    duetsoftwareframework 1.3.0 contains reprapfirmware version 1.3.0-1 which is internal version 3.01-RC6
    duetsoftwareframework 1.2.5.0 contains reprapfirmware version 1.2.5.0-1 which is internal version 3.01-RC4
    ...snip...
    


  • THANK - YOU.



  • Found out an interesting thing about my own tool. 'apt update' is necessary for it to 'see' anything added to the package server since the prior 'apt update'. Note line 26 below.

    Makes perfect sense!

    ./DuetVersionsAll.sh
    Expect this to take several seconds per line of output.
    
    duetsoftwareframework 2.1.1 contains reprapfirmware version 2.1.1-1 which is internal version 3.01-RC10
    duetsoftwareframework 2.1.0 contains reprapfirmware version 2.1.0-1 which is internal version 3.01-RC9
    duetsoftwareframework 2.0.0 contains reprapfirmware version 2.0.0-1 which is internal version 3.01-RC8
    ^C
    pi@duet3:~/DuetVersions $ sudo apt update
    Get:1 http://archive.raspberrypi.org/debian buster InRelease [25.1 kB]
    Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
    Get:3 https://pkg.duet3d.com unstable InRelease [2,565 B]
    Hit:4 https://pkg.duet3d.com stable InRelease
    Get:5 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages [13.0 MB]
    Get:6 http://archive.raspberrypi.org/debian buster/main armhf Packages [327 kB]
    Get:7 https://pkg.duet3d.com unstable/armv7 armhf Packages [31.9 kB]
    Ign:5 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
    Get:5 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages [18.3 MB]
    Fetched 18.7 MB in 1min 32s (204 kB/s)
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    8 packages can be upgraded. Run 'apt list --upgradable' to see them.
    pi@duet3:~/DuetVersions $ ./DuetVersionsAll.sh
    Expect this to take several seconds per line of output.
    
    duetsoftwareframework 2.1.2 contains reprapfirmware version 2.1.2-1 which is internal version 3.01-RC10
    duetsoftwareframework 2.1.1 contains reprapfirmware version 2.1.1-1 which is internal version 3.01-RC10
    duetsoftwareframework 2.1.0 contains reprapfirmware version 2.1.0-1 which is internal version 3.01-RC9
    duetsoftwareframework 2.0.0 contains reprapfirmware version 2.0.0-1 which is internal version 3.01-RC8
    


  • Also found out that my "look backward" index is off. See lower block. Argument of 2 gets latest and 0 or 1 blows up.

    Will fix later today.

    ./DuetVersion.sh
      Highest Available DuetSoftwareFramework = 2.1.2
    Currently Installed DuetSoftwareFramework = 2.1.1
    
    Dependencies for DSF version 2.1.1 are:
     duetcontrolserver (= 2.1.1)
     duetsd (= 1.0.6)
     duettools (= 2.1.1)
     duetwebserver (= 2.1.0)
     duetwebcontrol (= 2.1.5)
     reprapfirmware (>= 2.1.1-1)
     reprapfirmware (<= 2.1.1-999) )
    
    reprapfirmware apt version 2.1.1-1 is internal version 3.01-RC10
    
    ./DuetVersion.sh 2
      Highest Available DuetSoftwareFramework = 2.1.2
    Currently Installed DuetSoftwareFramework = 2.1.1
    
    Command line arg specified to request Release -2 from highest available.
           Highest-2 is DuetSoftwareFramework = 2.1.2
    
    Dependencies for DSF version 2.1.2 are:
     duetcontrolserver (= 2.1.2)
     duetsd (= 1.0.6)
     duettools (= 2.1.2)
     duetwebserver (= 2.1.0)
     duetwebcontrol (= 2.1.5)
     reprapfirmware (>= 2.1.2-1)
     reprapfirmware (<= 2.1.2-999) )
    
    reprapfirmware apt version 2.1.2-1 is internal version 3.01-RC10
    

Log in to reply