Line
Link Here
|
0 |
-- layman/action.py |
0 |
++ layman/action.py |
Lines 157-163
Link Here
|
157 |
self.selection = config['add'] |
157 |
self.selection = config['add'] |
158 |
|
158 |
|
159 |
enc = sys.getfilesystemencoding() |
159 |
enc = sys.getfilesystemencoding() |
160 |
self.selection = [i.decode(enc) for i in self.selection] |
160 |
if enc: |
|
|
161 |
self.selection = [i.decode(enc) for i in self.selection] |
161 |
|
162 |
|
162 |
if 'ALL' in self.selection: |
163 |
if 'ALL' in self.selection: |
163 |
self.selection = self.rdb.overlays.keys() |
164 |
self.selection = self.rdb.overlays.keys() |
164 |
-- layman/overlays/overlay.py |
165 |
++ layman/overlays/overlay.py |
Lines 154-161
Link Here
|
154 |
OUT.info('Running command "' + command + '"...', 2) |
154 |
OUT.info('Running command "' + command + '"...', 2) |
155 |
|
155 |
|
156 |
if hasattr(sys.stdout,'encoding'): |
156 |
if hasattr(sys.stdout,'encoding'): |
157 |
command = command.encode(sys.stdout.encoding or |
157 |
enc = sys.stdout.encoding or sys.getfilesystemencoding() |
158 |
sys.getfilesystemencoding()) |
158 |
if enc: |
|
|
159 |
command = command.encode(enc) |
159 |
|
160 |
|
160 |
if not self.quiet: |
161 |
if not self.quiet: |
161 |
return os.system(command) |
162 |
return os.system(command) |