Re: [gentoo-portage-dev] [PATCH] egencache: --write-timestamp to create metadata/timestamp.chk

2013-11-27 Thread Mike Frysinger
On Wednesday 27 November 2013 16:41:12 Sebastian Luther wrote: > Am 27.11.2013 22:20, schrieb Mike Frysinger: > > use a with block, and merge those writes > > > > with open(timestamp_path, 'w') as f: > > f.write(time.strftime('%a, %d > > %b %Y %H:%M:%S +\n', time.gmtime())) > > What if

Re: [gentoo-portage-dev] [PATCH] egencache: --write-timestamp to create metadata/timestamp.chk

2013-11-27 Thread Sebastian Luther
Am 27.11.2013 22:20, schrieb Mike Frysinger: > On Wednesday 27 November 2013 05:31:17 sebastianlut...@gmx.de > wrote: >> +if options.write_timestamp: + timestamp_path = >> os.path.join(repo_path, "metadata", "timestamp.chk") + try: + >> timestampfile = open(timestamp_pat

Re: [gentoo-portage-dev] [PATCH] egencache: --write-timestamp to create metadata/timestamp.chk

2013-11-27 Thread Mike Frysinger
On Wednesday 27 November 2013 05:31:17 sebastianlut...@gmx.de wrote: > + if options.write_timestamp: > + timestamp_path = os.path.join(repo_path, "metadata", > "timestamp.chk") > + try: > + timestampfile = open(timestamp_path, "w") > +

Re: [gentoo-portage-dev] RFC: Handling of slot operator rebuilds

2013-11-27 Thread Brian Dolbec
On Wed, 2013-11-27 at 12:55 +0100, Sebastian Luther wrote: > Hi all, > > bug 490350 [1] brought me to think about the way rebuilds are currently > handled/can be influenced. > > When a new version of some package is about to be installed in the same > slot as the installed version and this new ve

[gentoo-portage-dev] RFC: Handling of slot operator rebuilds

2013-11-27 Thread Sebastian Luther
Hi all, bug 490350 [1] brought me to think about the way rebuilds are currently handled/can be influenced. When a new version of some package is about to be installed in the same slot as the installed version and this new version has a different sub slot then I see 3 different things one can do:

[gentoo-portage-dev] [PATCH] egencache: --write-timestamp to create metadata/timestamp.chk

2013-11-27 Thread SebastianLuther
From: Sebastian Luther This is required to sync repositories using rsnyc. URL: https://bugs.gentoo.org/488972 --- bin/egencache | 18 ++ 1 file changed, 18 insertions(+) diff --git a/bin/egencache b/bin/egencache index 54c517e..6ff1dcb 100755 --- a/bin/egencache +++ b/bin/egenc