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.
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.
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/>.
15
# Copyright (C) 2014 Canonical, Ltd.
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."
21
echo "Usage: $0 [silo number]"
25
silo_number=$(printf "%03d" $1)
27
sudo ppa-purge ppa:ci-train-ppa-service/landing-$silo_number