-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from AnacondaRecipes/menuinst
Add patch to remove capitalization of DISTRIBUTION_NAME
- Loading branch information
Showing
3 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
recipe/menuinst_patches/0004-distribution-name-subst.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/menuinst/win32.py b/menuinst/win32.py | ||
index 6aabd93..370909e 100644 | ||
--- a/menuinst/win32.py | ||
+++ b/menuinst/win32.py | ||
@@ -171,7 +171,7 @@ def substitute_env_variables(text, dir): | ||
for a, b in ( | ||
(u'${PREFIX}', env_prefix), | ||
(u'${ROOT_PREFIX}', root_prefix), | ||
- (u'${DISTRIBUTION_NAME}', os.path.split(root_prefix)[-1].capitalize()), | ||
+ (u'${DISTRIBUTION_NAME}', os.path.split(root_prefix)[-1]), | ||
(u'${PYTHON_SCRIPTS}', | ||
os.path.normpath(join(env_prefix, u'Scripts')).replace(u"\\", u"/")), | ||
(u'${MENU_DIR}', join(env_prefix, u'Menu')), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters