Merge lp:~frankban/lpsetup/minor-fixes into lp:lpsetup
Proposed by
Francesco Banconi
Status: | Merged |
---|---|
Approved by: | Francesco Banconi |
Approved revision: | 68 |
Merged at revision: | 67 |
Proposed branch: | lp:~frankban/lpsetup/minor-fixes |
Merge into: | lp:lpsetup |
Diff against target: |
69 lines (+9/-7) 2 files modified
lpsetup/subcommands/finish_inithost.py (+1/-1) lpsetup/subcommands/update.py (+8/-6) |
To merge this branch: | bzr merge lp:~frankban/lpsetup/minor-fixes |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Francesco Banconi (community) | Approve | ||
Brad Crittenden (community) | code | Approve | |
Review via email: mp+117699@code.launchpad.net |
Commit message
Fixed su/cd context managers order. Improved update subcommand output.
Description of the change
== Changes ==
Inverted the order of *su* and *cd* context managers to avoid permission denied errors, e.g.::
being in /root as root, before:
su user
cd /home/user
cd /root --> premission denied
and now:
cd /home/user
su user
su root
cd /root
s/run/call in update sub command to give the user some feedback on what's happening.
To post a comment you must log in.
Nice changes and an easy fix to your problem.