Lines 226-239
Link Here
|
226 |
} |
226 |
} |
227 |
|
227 |
|
228 |
pkg_postrm() { |
228 |
pkg_postrm() { |
|
|
229 |
local mansuffix=$(ecompress --suffix) |
229 |
python_makesym |
230 |
python_makesym |
230 |
alternatives_auto_makesym "/usr/bin/idle" "idle[0-9].[0-9]" |
231 |
alternatives_auto_makesym "/usr/bin/idle" "idle[0-9].[0-9]" |
231 |
alternatives_auto_makesym "/usr/bin/pydoc" "pydoc[0-9].[0-9]" |
232 |
alternatives_auto_makesym "/usr/bin/pydoc" "pydoc[0-9].[0-9]" |
|
|
233 |
alternatives_auto_makesym "/usr/share/man/man1/python.1${mansuffix}" \ |
234 |
"python[0-9].[0-9].1${mansuffix}" |
232 |
alternatives_auto_makesym "/usr/bin/python-config" \ |
235 |
alternatives_auto_makesym "/usr/bin/python-config" \ |
233 |
"python-config-[0-9].[0-9]" |
236 |
"python-config-[0-9].[0-9]" |
234 |
suffix=$(echo /usr/share/man/man1/python${PYVER}.1* | sed "s/.*python${PYVER}.1//") |
|
|
235 |
ln -s "${ROOT}"/usr/share/man/man1/python${PYVER}.1${suffix} \ |
236 |
"${ROOT}"/usr/share/man/man1/python.1${suffix} |
237 |
|
237 |
|
238 |
python_mod_cleanup /usr/lib/python${PYVER} |
238 |
python_mod_cleanup /usr/lib/python${PYVER} |
239 |
[[ "$(get_libdir)" == "lib" ]] || \ |
239 |
[[ "$(get_libdir)" == "lib" ]] || \ |
Lines 243-257
Link Here
|
243 |
pkg_postinst() { |
243 |
pkg_postinst() { |
244 |
local myroot |
244 |
local myroot |
245 |
myroot=$(echo $ROOT | sed 's:/$::') |
245 |
myroot=$(echo $ROOT | sed 's:/$::') |
|
|
246 |
local mansuffix=$(ecompress --suffix) |
246 |
|
247 |
|
247 |
python_makesym |
248 |
python_makesym |
248 |
alternatives_auto_makesym "/usr/bin/idle" "idle[0-9].[0-9]" |
249 |
alternatives_auto_makesym "/usr/bin/idle" "idle[0-9].[0-9]" |
249 |
alternatives_auto_makesym "/usr/bin/pydoc" "pydoc[0-9].[0-9]" |
250 |
alternatives_auto_makesym "/usr/bin/pydoc" "pydoc[0-9].[0-9]" |
250 |
alternatives_auto_makesym "/usr/bin/python-config" \ |
251 |
alternatives_auto_makesym "/usr/bin/python-config" \ |
251 |
"python-config-[0-9].[0-9]" |
252 |
"python-config-[0-9].[0-9]" |
252 |
suffix=$(echo /usr/share/man/man1/python${PYVER}.1* | sed "s/.*python${PYVER}.1//") |
253 |
alternatives_auto_makesym "/usr/share/man/man1/python.1${mansuffix}" \ |
253 |
ln -s "${ROOT}"/usr/share/man/man1/python${PYVER}.1${suffix} \ |
254 |
"python[0-9].[0-9].1${mansuffix}" |
254 |
"${ROOT}"/usr/share/man/man1/python.1${suffix} |
|
|
255 |
|
255 |
|
256 |
python_mod_optimize |
256 |
python_mod_optimize |
257 |
python_mod_optimize -x site-packages \ |
257 |
python_mod_optimize -x site-packages \ |