Gentoo Archives: gentoo-alt

From: Fabian Groffen <grobian@g.o>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] unemerging causes a bad symlink removal
Date: Sun, 06 Sep 2009 07:13:13
Message-Id: 20090906071259.GA22567@gentoo.org
In Reply to: Re: [gentoo-alt] unemerging causes a bad symlink removal by Alan Hourihane
1 On 05-09-2009 21:45:27 +0100, Alan Hourihane wrote:
2 > > looks like Portage already tries to avoid doing something wrong:
3 > >
4 > > if pkgfiles[objkey][0] == "dir":
5 > > if statobj is None or not stat.S_ISDIR(statobj.st_mode):
6 > > show_unmerge("---", unmerge_desc["!dir"], file_type, obj)
7 > > continue
8 > > mydirs.append(obj)
9 > >
10 > > it only removes directories that are in mydirs, and technically it
11 > > should never find your /usr dir, so that seems to be the bug to me
12 >
13 > Yeah, I think it should be using lstatobj and not statobj because it'll
14 > end up stating the symlinks pointer.
15
16 right, I suspected something like that.
17
18
19 --
20 Fabian Groffen
21 Gentoo on a different level

Replies

Subject Author
Re: [gentoo-alt] unemerging causes a bad symlink removal Alan Hourihane <alanh@×××××××××××.uk>