Gentoo Archives: gentoo-alt

From: Alan Hourihane <alanh@×××××××××××.uk>
To: gentoo-alt@l.g.o
Subject: [gentoo-alt] portage patch
Date: Fri, 09 Jul 2010 22:42:25
Message-Id: 1278715314.7311.1376.camel@jetpack.demon.co.uk
1 When unmerging I bump into a duplicate name check. This patch fixes it
2 for me...
3
4 Alan.
5
6 --- bad/pym/portage/dbapi/bintree.py 2010-04-30 08:52:37.000000000 +0000
7 +++ good/pym/portage/dbapi/bintree.py 2010-04-30 08:52:53.000000000
8 +0000
9 @@ -939,7 +939,8 @@
10 if filename is not None:
11 new_filename = self.getname(cpv)
12 self._ensure_dir(os.path.dirname(new_filename))
13 - _movefile(filename, new_filename, mysettings=self.settings)
14 + if filename != new_filename:
15 + _movefile(filename, new_filename, mysettings=self.settings)
16 if self._all_directory and \
17 self.getname(cpv).split(os.path.sep)[-2] == "All":
18 self._create_symlink(cpv)

Replies

Subject Author
Re: [gentoo-alt] portage patch Alan Hourihane <alanh@×××××××××××.uk>