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 |