Merge lp://qastaging/~xintx-ua/command-not-found/add-install-support into lp://qastaging/~command-not-found-developers/command-not-found/trunk
Proposed by
Serhiy
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 144 | ||||
Proposed branch: | lp://qastaging/~xintx-ua/command-not-found/add-install-support | ||||
Merge into: | lp://qastaging/~command-not-found-developers/command-not-found/trunk | ||||
Diff against target: |
49 lines (+14/-0) 2 files modified
CommandNotFound/CommandNotFound.py (+13/-0) command-not-found (+1/-0) |
||||
To merge this branch: | bzr merge lp://qastaging/~xintx-ua/command-not-found/add-install-support | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Zygmunt Krynicki | Approve | ||
Review via email: mp+84257@code.qastaging.launchpad.net |
Description of the change
Adding installation support.
To post a comment you must log in.
21 + locale. setlocale( locale. LC_ALL, '')
Why are you setting this?
+ if return_code not in (0,256): #256 = user rejected installation
29 + print >> sys.stderr, _("A problem occured during installation. apt-get returned %d") % return_code
I would just do if return_code != 0, I don't know if there is any value as the failing installation probably leaves enough information to the user anyway.