~xnox/phablet-tools/no-uitk-deprecation

« back to all changes in this revision

Viewing changes to citrain-purge

  • Committer: CI bot
  • Author(s): Robert Bruce Park
  • Date: 2014-05-15 19:59:37 UTC
  • mfrom: (268.2.6 citrain)
  • Revision ID: ps-jenkins@lists.canonical.com-20140515195937-4l5mb4228q3g6l5l
Add scripts to ease interactions with CI Train silos. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh -e
 
2
# This program is free software: you can redistribute it and/or modify it
 
3
# under the terms of the the GNU General Public License version 3, as
 
4
# published by the Free Software Foundation.
 
5
#
 
6
# This program is distributed in the hope that it will be useful, but
 
7
# WITHOUT ANY WARRANTY; without even the implied warranties of
 
8
# MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR
 
9
# PURPOSE.  See the applicable version of the GNU General Public
 
10
# License for more details.
 
11
#.
 
12
# You should have received a copy of the GNU General Public License
 
13
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
14
#
 
15
# Copyright (C) 2014 Canonical, Ltd.
 
16
 
 
17
if ! echo $1 | egrep -q "^[0-9]{1,3}$"; then
 
18
    echo "This tool will revert all binary packages from a CI Train silo back to"
 
19
    echo "the stock packages available to the host machine."
 
20
    echo
 
21
    echo "Usage: $0 [silo number]"
 
22
    exit 1
 
23
fi
 
24
 
 
25
silo_number=$(printf "%03d" $1)
 
26
 
 
27
sudo ppa-purge ppa:ci-train-ppa-service/landing-$silo_number