[gentoo-portage-dev] [PATCH] unprivileged mode: use first_existing helper func

2014-11-14 Thread Zac Medico
Split out a first_existing function, in order to improve logic related to the _unprivileged_mode function so that it checks whether it's possible to create the specified target root (instead of requiring that the target root already exists). --- pym/portage/data.py | 20 +-

Re: [gentoo-portage-dev] [PATCH] unprivileged mode: generate PORTAGE_DEPCACHEDIR

2014-11-14 Thread Zac Medico
On 11/11/2014 01:14 AM, Alexander Berntsen wrote: > On 11/11/14 01:17, Zac Medico wrote: >> We could certainly express it in a way that doesn't involve any >> mutating loop control variables, but ultimately that's going to >> lead to more lines of code, and it will leave imperative >> programmers w

[gentoo-portage-dev] [PATCH v2] NewsManager.getUnreadItems: handle EROFS (490732)

2014-11-14 Thread Zac Medico
When getUnreadItems tries to lock the news.unread file, it's safe to ignore EROFS. This is handled with a ReadOnlyFileSystem exception raised from the portage.locks.lockfile function. X-Gentoo-Bug: 490732 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=490732 --- This updated patch fixes

Re: [gentoo-portage-dev] Binpackages

2014-11-14 Thread Zac Medico
On 11/14/2014 03:29 AM, ma...@nucleus.it wrote: > Hi all, > i think the answer is "you can't" but i wan to try :) . > > I setup a builder ( FEATURES="buildpkg" ) server to deploy bin packages > for other servers ( FEATURES="getbinpkg" ) ? > > For example: > mail-mta/postfix with USE="mysql" > mai

Re: [gentoo-portage-dev] [PATCH] portageq: fix eroot parameter (bug #529200)

2014-11-14 Thread Zac Medico
On 11/14/2014 12:57 AM, Alexander Berntsen wrote: > On 14/11/14 08:42, Zac Medico wrote: >> +eprefix = os.environ.get("EPREFIX", portage.const.EPREFIX) >> +if eprefix: >> +eprefix = portage.util.normalize_path(eprefix) > Why not just: > eprefix = os.env

Re: [gentoo-portage-dev] Binpackages

2014-11-14 Thread Matthew Thode
On 11/14/2014 05:29 AM, ma...@nucleus.it wrote: > Hi all, > i think the answer is "you can't" but i wan to try :) . > > I setup a builder ( FEATURES="buildpkg" ) server to deploy bin packages > for other servers ( FEATURES="getbinpkg" ) ? > > For example: > mail-mta/postfix with USE="mysql" > mai

[gentoo-portage-dev] Binpackages

2014-11-14 Thread marco
Hi all, i think the answer is "you can't" but i wan to try :) . I setup a builder ( FEATURES="buildpkg" ) server to deploy bin packages for other servers ( FEATURES="getbinpkg" ) ? For example: mail-mta/postfix with USE="mysql" mail-mta/postfix without mysql Sometimes can be useful to have a bin

Re: [gentoo-portage-dev] [PATCH] portageq: fix eroot parameter (bug #529200)

2014-11-14 Thread Alexander Berntsen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 14/11/14 08:42, Zac Medico wrote: > + eprefix = os.environ.get("EPREFIX", portage.const.EPREFIX) > + if eprefix: > + eprefix = portage.util.normalize_path(eprefix) Why not just: eprefix = os.environ.ge

Re: [gentoo-portage-dev] [PATCH] fs_template._ensure_dirs: handle EEXIST (529120)

2014-11-14 Thread Alexander Berntsen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 LGTM. Go ahead & merge. - -- Alexander berna...@gentoo.org https://secure.plaimi.net/~alexander -BEGIN PGP SIGNATURE- Version: GnuPG v2 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iF4EAREIAAYFAlRlwSAACgkQRtClrXBQc7We7AD