Lines 125-130
Link Here
|
125 |
emake || die "Parallel make failed" |
125 |
emake || die "Parallel make failed" |
126 |
} |
126 |
} |
127 |
|
127 |
|
|
|
128 |
pkg_preinst () { |
129 |
python_version # get the current version |
130 |
OLD_PYVER=${PYVER} |
131 |
} |
132 |
|
128 |
src_install() { |
133 |
src_install() { |
129 |
dodir /usr |
134 |
dodir /usr |
130 |
src_configure |
135 |
src_configure |
Lines 195-211
Link Here
|
195 |
fi |
200 |
fi |
196 |
|
201 |
|
197 |
echo |
202 |
echo |
198 |
ewarn |
203 |
|
199 |
ewarn "If you have just upgraded from python-2.2.x you will need to run:" |
204 |
if [ "${OLD_PYVER}" != "2.3" ]; then |
200 |
ewarn |
205 |
ewarn |
201 |
ewarn "/usr/sbin/python-updater" |
206 |
ewarn "You have just changed from python-${OLD_PYVER}.x to" |
202 |
ewarn |
207 |
ewarn "python-${PYVER}.x and we will now rebuild all the python" |
203 |
ewarn "This will automatically rebuild all the python dependent modules" |
208 |
ewarn "dependent modules." |
204 |
ewarn "to run with python-2.3." |
209 |
ewarn |
205 |
ewarn |
210 |
ewarn "Running updater..." |
206 |
ewarn "Python 2.2 is still installed and can be accessed via /usr/bin/python2.2." |
211 |
ewarn " /usr/sbin/python-updater -o ${OLD_PYVER} -n ${PYVER}" |
207 |
ewarn "Portage-2.0.49-r8 and below will continue to use python-2.2.x, so" |
212 |
ewarn |
208 |
ewarn "think twice about uninstalling it, otherwise your system will break." |
213 |
/usr/sbin/python-updater -o ${OLD_PYVER} -n ${PYVER} |
209 |
ewarn |
214 |
fi |
|
|
215 |
|
216 |
if [ -f /usr/bin/python2.2 ]; then |
217 |
ewarn "Python 2.2 is still installed and can be accessed via " |
218 |
ewarn "/usr/bin/python2.2. Portage-2.0.49-r8 and below will " |
219 |
ewarn "continue to use python-2.2.x, so think twice about " |
220 |
ewarn "uninstalling it, otherwise your system will break." |
221 |
ewarn |
222 |
fi |
223 |
|
210 |
ebeep 5 |
224 |
ebeep 5 |
211 |
} |
225 |
} |