Lines 1-5
Link Here
|
1 |
#!/usr/bin/python -bO |
1 |
#!/usr/bin/python -bO |
2 |
# Copyright 1999-2014 Gentoo Foundation |
2 |
# Copyright 1999-2016 Gentoo Foundation |
3 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# Distributed under the terms of the GNU General Public License v2 |
4 |
|
4 |
|
5 |
# |
5 |
# |
Lines 16-21
from __future__ import print_function, unicode_literals
Link Here
|
16 |
import atexit |
16 |
import atexit |
17 |
import io |
17 |
import io |
18 |
import re |
18 |
import re |
|
|
19 |
import subprocess |
19 |
import sys |
20 |
import sys |
20 |
|
21 |
|
21 |
from stat import ST_GID, ST_MODE, ST_UID |
22 |
from stat import ST_GID, ST_MODE, ST_UID |
Lines 137-145
class dispatch:
Link Here
|
137 |
path, basename = os.path.split(path) |
138 |
path, basename = os.path.split(path) |
138 |
find_opts = "-maxdepth 1" |
139 |
find_opts = "-maxdepth 1" |
139 |
|
140 |
|
140 |
with os.popen(FIND_EXTANT_CONFIGS % |
141 |
try: |
141 |
(path, find_opts, basename)) as proc: |
142 |
path_list = _unicode_decode(subprocess.check_output( |
142 |
confs += self.massage(proc.readlines()) |
143 |
portage.util.shlex_split(FIND_EXTANT_CONFIGS % |
|
|
144 |
(path, find_opts, basename))), |
145 |
errors='strict').splitlines() |
146 |
except subprocess.CalledProcessError: |
147 |
pass |
148 |
else: |
149 |
confs.extend(self.massage(path_list)) |
143 |
|
150 |
|
144 |
if self.options['use-rcs'] == 'yes': |
151 |
if self.options['use-rcs'] == 'yes': |
145 |
for rcs_util in ("rcs", "ci", "co", "rcsmerge"): |
152 |
for rcs_util in ("rcs", "ci", "co", "rcsmerge"): |
146 |
- |
|
|