repoman: quote paths in PORTDIR_OVERLAY
authorZac Medico <zmedico@gentoo.org>
Sat, 17 Sep 2011 04:09:02 +0000 (21:09 -0700)
committerZac Medico <zmedico@gentoo.org>
Sat, 17 Sep 2011 04:09:02 +0000 (21:09 -0700)
This will fix bug #383269.

bin/repoman

index b95fc03492f8532182ebc3fb9a19936b4ea155c0..7532a997f944e366a1307fe6bfbfa2a7eeef2b1e 100755 (executable)
@@ -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,