Merge lp:~robru/phablet-tools/bileto-v2 into lp:phablet-tools

Proposed by Robert Bruce Park on 2016-11-02
Status: Merged
Approved by: Robert Bruce Park on 2016-11-02
Approved revision: 372
Merged at revision: 372
Proposed branch: lp:~robru/phablet-tools/bileto-v2
Merge into: lp:phablet-tools
Diff against target: 21 lines (+2/-2)
1 file modified
bileto (+2/-2)
To merge this branch: bzr merge lp:~robru/phablet-tools/bileto-v2
Reviewer Review Type Date Requested Status
Ubuntu Phablet Team 2016-11-02 Pending
Review via email: mp+309877@code.launchpad.net

Commit message

Migrate to new bileto v2 api.

Description of the change

Migrate to new bileto v2 api.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bileto'
2--- bileto 2016-09-22 06:50:16 +0000
3+++ bileto 2016-11-02 17:50:34 +0000
4@@ -12,7 +12,7 @@
5 # You should have received a copy of the GNU General Public License
6 # along with this program. If not, see <http://www.gnu.org/licenses/>.
7 #
8-# Copyright (C) 2014 Canonical, Ltd.
9+# Copyright (C) 2014-2016 Canonical, Ltd.
10
11 usage () {
12 cat <<EOF
13@@ -82,7 +82,7 @@
14 TICKET="$1"
15 [ $# -gt 0 ] && shift || usage "Missing TICKET-NUMBER."
16
17-NAME="$(curl https://bileto.ubuntu.com/v1/ticket/$TICKET | grep --perl-regexp --only-matching '"siloname":\s?"\K[^"]+' | sed --quiet --expression '1s#\w\+/##p')"
18+NAME="$(curl https://bileto.ubuntu.com/v2/ticket/$TICKET | grep --perl-regexp --only-matching '"ppa":\s?"\K[^"]+')"
19
20 case "$COMMAND" in
21 host-upgrade)

Subscribers

People subscribed via source and target branches