summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-09-16 21:09:02 -0700
committerZac Medico <zmedico@gentoo.org>2011-09-16 21:09:02 -0700
commit4242e2ce17105cd9a55ee8027c2be795b7c6e91e (patch)
treed2da6edb81d37b57dd98f5fab161ec62e3726f73
parent9623d8bfdeee4e2ab728529a86322a26f1b6258e (diff)
downloadportage-4242e2ce17105cd9a55ee8027c2be795b7c6e91e.tar.gz
portage-4242e2ce17105cd9a55ee8027c2be795b7c6e91e.tar.bz2
portage-4242e2ce17105cd9a55ee8027c2be795b7c6e91e.zip
repoman: quote paths in PORTDIR_OVERLAY
This will fix bug #383269.
-rwxr-xr-xbin/repoman3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/repoman b/bin/repoman
index b95fc0349..7532a997f 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -572,7 +572,8 @@ if options.mode == 'commit' and not options.pretend and not vcs:
# Ensure that PORTDIR_OVERLAY contains the repository corresponding to $PWD.
repoman_settings = portage.config(local_config=False, _eprefix=eprefix)
repoman_settings['PORTDIR_OVERLAY'] = "%s %s" % \
- (repoman_settings.get('PORTDIR_OVERLAY', ''), portdir_overlay)
+ (repoman_settings.get('PORTDIR_OVERLAY', ''),
+ portage._shell_quote(portdir_overlay))
# We have to call the config constructor again so
# that config.repositories is initialized correctly.
repoman_settings = portage.config(local_config=False, _eprefix=eprefix,