Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@×××××.com>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] [gentoo-dev-portage] [PATCH] prevent world file corruption by writing atomically
Date: Tue, 24 Jan 2006 18:30:44
Message-Id: 43D671D2.5070905@gmail.com
In Reply to: Re: [gentoo-portage-dev] [gentoo-dev-portage] [PATCH] prevent world file corruption by writing atomically by Brian Harring
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Brian Harring wrote:
5 > the atomic writing of data in writedict could be gutted out to a
6 > derivative of the file class; via that, same underlying atomic update
7 > code for writedict and wordfile updates...
8
9 Hmm, override the constructor and close methods to handle the temp file creation and rename, respectively. That seems like a very elegant approach. I'll try that and update the patch.
10
11 Zac
12 -----BEGIN PGP SIGNATURE-----
13 Version: GnuPG v1.4.2 (GNU/Linux)
14
15 iD8DBQFD1nHS/ejvha5XGaMRAhcCAJ4v2ZoUux1lqDpq8z9URZfybZg2IgCfVwDK
16 XPPGuL0jiv3RgO1xPCsGFt0=
17 =E4NK
18 -----END PGP SIGNATURE-----
19 --
20 gentoo-portage-dev@g.o mailing list

Replies