Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(313)

Issue 3060043: Making default to LOGNAME work correctly. (Closed)

Created:
10 years, 4 months ago by bradn
Modified:
9 years, 7 months ago
CC:
chromium-os-reviews_chromium.org, Mandeep Singh Baines, anush, sosa
Base URL:
ssh://git@chromiumos-git/crosutils.git
Visibility:
Public.

Description

Making default to LOGNAME work correctly. Modifying gsdcurl to accept username and password from the environment. Switching cros_download_latest_image to use gsdcurl Merge branch 'master' of ssh://chromiumos-git/crosutils Switching back to MixedCase. Wrong style guide... Switching to match external style guide. Dropping unneeded arg as per review. Fixing copyright. Making the prompts go to stderr. Renaming for tab completion. Adding gsdcurl utility for pulling for Google Storage for Developers. BUG=None TEST=None

Patch Set 1 #

Patch Set 2 : Using gsutil for latest build script #

Patch Set 3 : fix #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -4 lines) Patch
A bin/cros_gsdcurl.py View 1 chunk +70 lines, -0 lines 1 comment Download
M cros_download_latest_image View 1 chunk +10 lines, -4 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
bradn
10 years, 4 months ago (2010-08-04 00:26:57 UTC) #1
djmm
Rubberstamp on the python. otherwise LGTM
10 years, 4 months ago (2010-08-04 00:29:12 UTC) #2
bradn
No worries, I had the wrong base, it hadn't actually changed much. -BradN On Tue, ...
10 years, 4 months ago (2010-08-04 00:34:44 UTC) #3
jrbarnette
http://codereview.chromium.org/3060043/diff/6001/7001 File bin/cros_gsdcurl.py (right): http://codereview.chromium.org/3060043/diff/6001/7001#newcode18 bin/cros_gsdcurl.py:18: default_username = os.environ.get('LOGNAME', '') What's wrong with getpass.getuser()?
10 years, 4 months ago (2010-08-04 01:31:40 UTC) #4
bradn
It didn't want it to be totally opaque for an outside developer (or partner) who's ...
10 years, 4 months ago (2010-08-04 01:41:28 UTC) #5
jrbarnette
On Aug 3, 2010, at 6:41 PM, Bradley Nelson wrote: > It didn't want it ...
10 years, 4 months ago (2010-08-04 16:54:14 UTC) #6
bradn
10 years, 4 months ago (2010-08-04 17:24:37 UTC) #7
Ah, excellent point! That is a good idea.
Will correct shortly.

-BradN


On Wed, Aug 4, 2010 at 9:52 AM, Richard Barnette <jrbarnette@chromium.org>wrote:

> On Aug 3, 2010, at 6:41 PM, Bradley Nelson wrote:
>
>  It didn't want it to be totally opaque for an outside developer (or
>> partner) who's GAIA account name doesn't match their system username.
>>
>>  getpass.getuser() checks LOGNAME and additionally checks other
> environment variables that might contain a user name:
>    http://docs.python.org/release/2.5.2/lib/module-getpass.html
>
> I'll note that I wasn't suggesting throwing out any logic, I was
> just trying to say that getpass.getuser() is a convenient superset
> to os.environ.get('LOGNAME', '').
>
> Thanks!
>
>
>
>  -BradN
>>
>>
>> On Tue, Aug 3, 2010 at 6:31 PM, <jrbarnette@chromium.org> wrote:
>>
>> http://codereview.chromium.org/3060043/diff/6001/7001
>> File bin/cros_gsdcurl.py (right):
>>
>> http://codereview.chromium.org/3060043/diff/6001/7001#newcode18
>> bin/cros_gsdcurl.py:18: default_username = os.environ.get('LOGNAME', '')
>> What's wrong with getpass.getuser()?
>>
>>
>> http://codereview.chromium.org/3060043/show
>>
>>
> -- jrb
>
>

Powered by Google App Engine
This is Rietveld 408576698