Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 380569 - app-admin/eselect-python: wrapper should sanity create the env.d dir
Summary: app-admin/eselect-python: wrapper should sanity create the env.d dir
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Low enhancement (vote)
Assignee: Python Gentoo Team
URL: http://git.overlays.gentoo.org/gitweb...
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2011-08-24 20:55 UTC by SpanKY
Modified: 2013-12-10 17:45 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2011-08-24 20:55:54 UTC
if /etc/env.d/python/ doesnt exist, then using eselect-python ends up with:
/usr/share/eselect/modules/python.eselect: line 39: ./etc/env.d/python/config: No such file or directory

a simply sanity check in set_python() would make this more robust:
mkdir -p "${ENV_D_PATH}/python"

before attempting to write out the target to the "config" file
Comment 1 Mike Gilbert gentoo-dev 2013-12-10 17:45:42 UTC
+*eselect-python-20131210 (10 Dec 2013)
+
+  10 Dec 2013; Mike Gilbert <floppym@gentoo.org>
+  +eselect-python-20131210.ebuild, eselect-python-99999999.ebuild:
+  Version bump.