GoogleCloudPlatform/gsutil — pull request #184 by jkff (2014-02-28 18:50:14+00:00)
Title: Fixes suggested commands in gsutil update

Without this change, I get an error:

Would you like to update [Y/n]? y
Since it was installed by a different user previously, you will need
to update using the following commands. You will be prompted for your
password, and the install will run as "root". If you're unsure what
this means please ask your system administrator for help:
chmod 644 /etc/boto.cfg /home/kirpichov/.boto
sudo env BOTO_CONFIG=/etc/boto.cfg /home/kirpichov/.boto gsutil update
chmod 600 /etc/boto.cfg /home/kirpichov/.boto
kirpichov@instance1:~$ chmod 644 /etc/boto.cfg /home/kirpichov/.boto
chmod: changing permissions of `/etc/boto.cfg': Operation not permitted
kirpichov@instance1:~$ sudo chmod 644 /etc/boto.cfg /home/kirpichov/.boto
kirpichov@instance1:~$ sudo env BOTO_CONFIG=/etc/boto.cfg /home/kirpichov/.boto gsutil update
env: /home/kirpichov/.boto: Permission denied

With this change, it becomes:

sudo chmod 644 /etc/boto.cfg /home/kirpichov/.boto
sudo env BOTO_CONFIG="/etc/boto.cfg /home/kirpichov/.boto" gsutil update
sudo chmod 600 /etc/boto.cfg /home/kirpichov/.boto

which works correctly.