Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 117612 Details for
Bug 175058
emerge/portage does not support DISTDIR path with spaces in the name
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
avoid potential quoting issues by spawning FETCHCOMMAND without a shell
no_shell.patch (text/plain), 1.58 KB, created by
Zac Medico
on 2007-04-29 06:40:42 UTC
(
hide
)
Description:
avoid potential quoting issues by spawning FETCHCOMMAND without a shell
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2007-04-29 06:40:42 UTC
Size:
1.58 KB
patch
obsolete
>diff --git a/pym/portage.py b/pym/portage.py >index 7336a3b..4838619 100644 >--- a/pym/portage.py >+++ b/pym/portage.py >@@ -2534,9 +2534,6 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks", > else: > resumecommand=mysettings["RESUMECOMMAND"] > >- fetchcommand=fetchcommand.replace("${DISTDIR}",mysettings["DISTDIR"]) >- resumecommand=resumecommand.replace("${DISTDIR}",mysettings["DISTDIR"]) >- > if not can_fetch: > if fetched != 2: > if fetched == 0: >@@ -2566,8 +2563,14 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks", > locfetch=fetchcommand > writemsg_stdout(">>> Downloading '%s'\n" % \ > re.sub(r'//(.+):.+@(.+)/',r'//\1:*password*@\2/', loc)) >- myfetch=locfetch.replace("${URI}",loc) >- myfetch=myfetch.replace("${FILE}",myfile) >+ myfetch = locfetch.split() >+ variables = {"${DISTDIR}":mysettings["DISTDIR"], >+ "${URI}":loc, "${FILE}":myfile} >+ for i in xrange(len(myfetch)): >+ token = myfetch[i].strip("\"'") >+ value = variables.get(token) >+ if value is not None: >+ myfetch[i] = value > > spawn_keywords = {} > if "userfetch" in mysettings.features and \ >@@ -2585,7 +2588,7 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks", > con = con.replace(mysettings["PORTAGE_T"], mysettings["PORTAGE_FETCH_T"]) > selinux.setexec(con) > >- myret = portage_exec.spawn_bash(myfetch, >+ myret = portage_exec.spawn(myfetch, > env=mysettings.environ(), **spawn_keywords) > > if mysettings.selinux_enabled():
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 175058
:
116626
|
117564
| 117612 |
118264