FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Alt

 
 
LinkBack Thread Tools
 
Old 07-09-2010, 10:41 PM
Alan Hourihane
 
Default portage patch

When unmerging I bump into a duplicate name check. This patch fixes it
for me...

Alan.

--- bad/pym/portage/dbapi/bintree.py 2010-04-30 08:52:37.000000000 +0000
+++ good/pym/portage/dbapi/bintree.py 2010-04-30 08:52:53.000000000
+0000
@@ -939,7 +939,8 @@
if filename is not None:
new_filename = self.getname(cpv)
self._ensure_dir(os.path.dirname(new_filename))
- _movefile(filename, new_filename, mysettings=self.settings)
+ if filename != new_filename:
+ _movefile(filename, new_filename, mysettings=self.settings)
if self._all_directory and
self.getname(cpv).split(os.path.sep)[-2] == "All":
self._create_symlink(cpv)
 
Old 07-09-2010, 10:50 PM
Alan Hourihane
 
Default portage patch

Sorry, not unmerging, but when emerging binary files.

Alan.

On Fri, 2010-07-09 at 23:41 +0100, Alan Hourihane wrote:
> When unmerging I bump into a duplicate name check. This patch fixes it
> for me...
>
> Alan.
>
> --- bad/pym/portage/dbapi/bintree.py 2010-04-30 08:52:37.000000000 +0000
> +++ good/pym/portage/dbapi/bintree.py 2010-04-30 08:52:53.000000000
> +0000
> @@ -939,7 +939,8 @@
> if filename is not None:
> new_filename = self.getname(cpv)
> self._ensure_dir(os.path.dirname(new_filename))
> - _movefile(filename, new_filename, mysettings=self.settings)
> + if filename != new_filename:
> + _movefile(filename, new_filename, mysettings=self.settings)
> if self._all_directory and
> self.getname(cpv).split(os.path.sep)[-2] == "All":
> self._create_symlink(cpv)
>
>
>
 

Thread Tools




All times are GMT. The time now is 07:01 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org