Gentoo Archives: gentoo-portage-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-portage-dev@l.g.o
Cc: Chris Reffett <creffett@g.o>
Subject: Re: [gentoo-portage-dev] [PATCH v5] Test for read-only filesystems, bail out during preinst if there are any which will be written to and display a useful error message. Fixes bug 378869.
Date: Wed, 22 Jan 2014 05:24:49
Message-Id: 201401220024.50409.vapier@gentoo.org
In Reply to: [gentoo-portage-dev] [PATCH v5] Test for read-only filesystems, bail out during preinst if there are any which will be written to and display a useful error message. Fixes bug 378869. by Chris Reffett
1 On Monday 20 January 2014 23:00:31 Chris Reffett wrote:
2 > + if not ro_filesystems:
3 > + return ro_filesystems
4 > +
5 > + for directory in dir_list:
6 > + for filesystem in ro_filesystems:
7 > + if filesystem == directory:
8 > + ro_filesystems_written.add(filesystem)
9 > +
10 > + return ro_filesystems_written
11
12 is this just the intersection of two sets ? so all this logic could be:
13 return ro_filesystems ^ set(dir_list)
14 -mike

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies