Merge lp:~jml/launchpad/rf-setup-cleanup into lp:launchpad

Proposed by Jonathan Lange
Status: Merged
Approved by: Michael Hudson-Doyle
Approved revision: no longer in the source branch.
Merged at revision: not available
Proposed branch: lp:~jml/launchpad/rf-setup-cleanup
Merge into: lp:launchpad
Diff against target: 117 lines (+3/-80)
2 files modified
lib/devscripts/autoland.py (+3/-2)
utilities/rocketfuel-setup (+0/-78)
To merge this branch: bzr merge lp:~jml/launchpad/rf-setup-cleanup
Reviewer Review Type Date Requested Status
Michael Hudson-Doyle Approve
Review via email: mp+14779@code.launchpad.net

Commit message

Remove unnecessary SSH setup from rocketfuel-setup

To post a comment you must log in.
Revision history for this message
Jonathan Lange (jml) wrote :

Remove unnecessary SSH stuff from rocketfuel setup. Do I need to saying anything more?

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

YES PLEASE

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/devscripts/autoland.py'
2--- lib/devscripts/autoland.py 2009-10-08 23:22:16 +0000
3+++ lib/devscripts/autoland.py 2009-11-12 08:12:15 +0000
4@@ -230,14 +230,15 @@
5 returned by 'get_reviews'.
6 :return: A string like u'[r=foo,bar][ui=plop]'.
7 """
8- # If no review type is specified it will be None and is assumed to be a
9- # code review.
10+ # If no review type is specified it is assumed to be a code review.
11 code_reviewers = reviewers.get(None, [])
12 ui_reviewers = []
13 rc_reviewers = []
14 for review_type, reviewer in reviewers.items():
15 if review_type is None:
16 continue
17+ if review_type == '':
18+ code_reviewers.extend(reviewer)
19 if 'code' in review_type or 'db' in review_type:
20 code_reviewers.extend(reviewer)
21 if 'ui' in review_type:
22
23=== modified file 'utilities/rocketfuel-setup'
24--- utilities/rocketfuel-setup 2009-10-20 11:29:26 +0000
25+++ utilities/rocketfuel-setup 2009-11-12 08:12:15 +0000
26@@ -165,77 +165,6 @@
27 exit 1
28 fi
29
30-if [ ! -e ~/.ssh/config ]; then
31- touch ~/.ssh/config
32-fi
33-
34-ssh_config_mod=0
35-grep -q "^GSSAPIAuthentication" ~/.ssh/config
36-if [ $? -ne 0 ]; then
37- ssh_config_mod=1
38- echo "Please add the following directive to your ~/.ssh/config:
39-------------------------------------------------------------
40-GSSAPIAuthentication no
41-------------------------------------------------------------
42-
43- (Hit Return when done...)
44-"
45-fi
46-if [ "$whoami" != "$lpusername" ]; then
47- if [ "$ssh_config_mod" -ne "0" ]
48- then
49- intro="Also ensure"
50- else
51- ssh_config_mod=1
52- intro="Ensure"
53- fi
54- echo "$intro the following directive is in your ~/.ssh/config:
55-------------------------------------------------------------
56-Host bazaar.launchpad.net
57- User $lpusername
58-------------------------------------------------------------
59-
60- (Hit Return when done...)
61-"
62-fi
63-
64-if [ "$ssh_config_mod" -ne "0" ]; then
65- read
66-fi
67-
68-grep -q "^Host .*bazaar.launchpad.dev" ~/.ssh/config
69-if [ $? -ne 0 ]; then
70- echo "Please add the following directives to your ~/.ssh/config:
71-------------------------------------------------------------
72-Host bazaar.launchpad.dev
73- Hostname launchpad.dev
74- HostKeyAlias bazaar.launchpad.dev
75- User mark
76- Port 5022
77- IdentityFile ~/.ssh/launchpad_id_dsa
78-------------------------------------------------------------
79-
80- (Hit Return when done...)
81-"
82- read
83-fi
84-
85-# This is not strictly needed for bzr versions >= 1.9 but it's included
86-# here for backwards compatibility.
87-grep -q "^Host .*bazaar.launchpad.net" ~/.ssh/config
88-if [ $? -ne 0 ]; then
89- echo "Please add the following directives to your ~/.ssh/config:
90-------------------------------------------------------------
91-Host bazaar.launchpad.net
92- User ${lpusername}
93-------------------------------------------------------------
94-
95- (Hit Return when done...)
96-"
97- read
98-fi
99-
100-
101 LPDEV_SOURCES="/etc/apt/sources.list.d/launchpad-dev.list"
102 if [ ! -e $LPDEV_SOURCES ]; then
103 sudo touch $LPDEV_SOURCES
104@@ -431,13 +360,6 @@
105
106 fi
107
108-# Set up access to the local supermirror
109-if [ ! -e ~/.ssh/launchpad_id_dsa ]; then
110- cp $LP_TRUNK_PATH/lib/lp/codehosting/tests/id_dsa ~/.ssh/launchpad_id_dsa
111- chmod 600 ~/.ssh/launchpad_id_dsa
112- echo "Set up ssh key for local supermirror ssh access."
113-fi
114-
115 # Set up scripts in /usr/local/bin
116 cd /usr/local/bin
117 if [ ! -e rocketfuel-get ]; then