~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerheadd

  • Committer: Matt Nordhoff
  • Date: 2009-04-17 01:50:05 UTC
  • Revision ID: mnordhoff@mattnordhoff.com-20090417015005-56qyf7o28q8k480u
Don't use the "sets" module.

1.) The code wasn't using the built-in "set" type when it was available.

2.) bzrlib isn't compatible with Python <2.4 anyway, so there's no need to fall back to the "sets" module.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
LHUSER=loggerhead
18
18
 
19
 
if [ `whoami` = "$LHUSER" ]; then
 
19
if [ `whoami` = "$LHUSER" ]; then                                                                                   
20
20
    SUDO=""
21
 
else
 
21
else                                                                                                                
22
22
    SUDO="sudo -H -u $LHUSER"
23
23
fi
24
24