projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98cf646
)
Bug #228977 - Protect against possible infinite loop in
author
Zac Medico
<zmedico@gentoo.org>
Mon, 23 Jun 2008 01:24:25 +0000
(
01:24
-0000)
committer
Zac Medico
<zmedico@gentoo.org>
Mon, 23 Jun 2008 01:24:25 +0000
(
01:24
-0000)
dblink._preserve_libs().
svn path=/main/trunk/; revision=10762
pym/portage/dbapi/vartree.py
patch
|
blob
|
history
diff --git
a/pym/portage/dbapi/vartree.py
b/pym/portage/dbapi/vartree.py
index 68621c5764861b92ecc1a4bba43a012a3ca7a8ef..f71a207940c572fab2e7798491b1d4afb42f1b01 100644
(file)
--- a/
pym/portage/dbapi/vartree.py
+++ b/
pym/portage/dbapi/vartree.py
@@
-2068,8
+2068,9
@@
class dblink(object):
os.symlink(linktarget, os.path.join(srcroot, x.lstrip(os.sep)))
if linktarget[0] != os.sep:
linktarget = os.path.join(os.path.dirname(x), linktarget)
- candidates.add(linktarget)
- candidates_stack.append(linktarget)
+ if linktarget not in candidates:
+ candidates.add(linktarget)
+ candidates_stack.append(linktarget)
else:
shutil.copy2(os.path.join(destroot, x.lstrip(os.sep)),
os.path.join(srcroot, x.lstrip(os.sep)))