Merge lp:~fginther/vmbuilder/jenkins_kvm-update-ubuntu-adj2version into lp:~ubuntu-on-ec2/vmbuilder/jenkins_kvm

Proposed by Francis Ginther
Status: Merged
Merged at revision: 828
Proposed branch: lp:~fginther/vmbuilder/jenkins_kvm-update-ubuntu-adj2version
Merge into: lp:~ubuntu-on-ec2/vmbuilder/jenkins_kvm
Diff against target: 14 lines (+2/-2)
1 file modified
ubuntu-adj2version (+2/-2)
To merge this branch: bzr merge lp:~fginther/vmbuilder/jenkins_kvm-update-ubuntu-adj2version
Reviewer Review Type Date Requested Status
David Krauser (community) Approve
Tobias Koch (community) Approve
Review via email: mp+367043@code.launchpad.net

Commit message

Extend ubuntu-adj2version to work with disco and eoan

Description of the change

Extends the code which converts letters to a version number.

Testing:
$ ./ubuntu-adj2version precise
12.04
$ ./ubuntu-adj2version trusty
14.04
$ ./ubuntu-adj2version xenial
16.04
$ ./ubuntu-adj2version bionic
18.04
$ ./ubuntu-adj2version cosmic
18.10
$ ./ubuntu-adj2version disco
19.04
$ ./ubuntu-adj2version eoan
19.10

To post a comment you must log in.
Revision history for this message
Tobias Koch (tobijk) :
review: Approve
Revision history for this message
David Krauser (davidkrauser) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ubuntu-adj2version'
2--- ubuntu-adj2version 2017-10-17 11:52:09 +0000
3+++ ubuntu-adj2version 2019-05-07 12:32:29 +0000
4@@ -23,8 +23,8 @@
5 ubuntu_adj2ver() {
6 # over engineered function, convert ubuntu adjective to version
7 # based on its first letter.
8- local letter1="" list=defghijklmnopqrstuvwxyzabc
9- local baseyear=6 year="" month="04" tmp="" relnum=""
10+ local letter1="" list=fghijklmnopqrstuvwxyzabcde
11+ local baseyear=7 year="" month="04" tmp="" relnum=""
12
13 [ "$1" = "warty" -o "$1" = "Warty" -o "$1" = "WARTY" ] &&
14 { _RET="5.10"; return 0; }

Subscribers

People subscribed via source and target branches