[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Implementation of a wild card usage for the uniqueext option



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]