diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-08-18 07:47:18 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-08-18 07:47:18 +0000 |
commit | ee21f4b0c7301379f5df243f9c196a06e8132826 (patch) | |
tree | fc7e1c694cb2eafc130fd7f012967c30191c79ae | |
parent | f2d7055bb59e14aea4f32b574adbe768e992cb29 (diff) | |
download | portage-ee21f4b0c7301379f5df243f9c196a06e8132826.tar.gz portage-ee21f4b0c7301379f5df243f9c196a06e8132826.tar.bz2 portage-ee21f4b0c7301379f5df243f9c196a06e8132826.zip |
Fix atom -> str breakage in StaticFileSet.write().
svn path=/main/trunk/; revision=11432
-rw-r--r-- | pym/portage/sets/files.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pym/portage/sets/files.py b/pym/portage/sets/files.py index be356ec7e..d26f29d1d 100644 --- a/pym/portage/sets/files.py +++ b/pym/portage/sets/files.py @@ -59,9 +59,9 @@ class StaticFileSet(EditablePackageSet): return ValidAtomValidator(atom) def write(self): - write_atomic(self._filename, "\n".join(sorted( - chain(self._atoms, self._nonatoms)))+"\n") - + write_atomic(self._filename, "".join("%s\n" % (atom,) \ + for atom in sorted(chain(self._atoms, self._nonatoms)))) + def load(self): try: mtime = os.stat(self._filename).st_mtime |