Implementation of a wild card usage for the uniqueext option

Michael E Brown Michael_E_Brown at dell.com
Wed Jul 11 19:39:17 UTC 2007


On Tue, Jul 10, 2007 at 07:09:18PM +0200, Jochen Schmitt wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> nodata schrieb:
> > Am Dienstag, den 10.07.2007, 17:09 +0200 schrieb Jochen Schmitt:
> 
> > 1. avoid wildcards and special characters 2. for hacks like this
> > ("*" is a valid value), have a new option for that, e.g.
> > config_opts['auto-unique-ext']=1
> 
> Thank you for your hints. I have attached a improved version of my patch.

You can already implement this feature without any patch to mock.

In your chroot config file, simply do this:

============
import pwd
config_opts['unique-ext'] = pwd.getpwuid(os.getuid())[0]
============

--
Michael




More information about the fedora-devel-list mailing list