Merge lp:~smoser/cloud-archive-utils/sbuild-cloud-tools into lp:cloud-archive-utils

Proposed by Scott Moser
Status: Needs review
Proposed branch: lp:~smoser/cloud-archive-utils/sbuild-cloud-tools
Merge into: lp:cloud-archive-utils
Diff against target: 19 lines (+3/-2)
1 file modified
bin/sbuild-ca (+3/-2)
To merge this branch: bzr merge lp:~smoser/cloud-archive-utils/sbuild-cloud-tools
Reviewer Review Type Date Requested Status
Ubuntu Cloud Archive Team Pending
Review via email: mp+280502@code.launchpad.net

Commit message

Add 'sbuild-cloud-tools' link and support using it

Add the sbuild-cloud-tools link to sbuild-ca and then change how we read 'release' so that we get everything after the first - in basename of the executable. End result is that sbuild-cloud-tools gets release=cloud-tools rather than 'tools.

To post a comment you must log in.

Unmerged revisions

45. By Scott Moser

add sbuild-cloud-tools and support running that.

the change here reads 'release' from anything after first -, allowing for
the '-' that exists in cloud-tools.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bin/sbuild-ca'
2--- bin/sbuild-ca 2015-11-09 10:50:19 +0000
3+++ bin/sbuild-ca 2015-12-14 18:48:01 +0000
4@@ -1,9 +1,10 @@
5 #!/bin/bash
6
7-release=`basename $0 | cut -d - -f 2`
8+bname=${0##*/}
9+release=${bname#*-}
10
11 case $release in
12- folsom|grizzly|havana|icehouse)
13+ folsom|grizzly|havana|icehouse|cloud-tools)
14 target=precise
15 aar_pkg=python-software-properties
16 ;;
17
18=== added symlink 'bin/sbuild-cloud-tools'
19=== target is u'sbuild-ca'

Subscribers

People subscribed via source and target branches