summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
Diffstat (limited to 'project.py')
-rw-r--r--project.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/project.py b/project.py
index e3185b88..ed5b0e6c 100644
--- a/project.py
+++ b/project.py
@@ -1984,15 +1984,17 @@ class Project(object):
1984 ids.add(ref_id) 1984 ids.add(ref_id)
1985 tmp.add(r) 1985 tmp.add(r)
1986 1986
1987 tmp_packed = '' 1987 tmp_packed_lines = []
1988 old_packed = '' 1988 old_packed_lines = []
1989 1989
1990 for r in sorted(all_refs): 1990 for r in sorted(all_refs):
1991 line = '%s %s\n' % (all_refs[r], r) 1991 line = '%s %s\n' % (all_refs[r], r)
1992 tmp_packed += line 1992 tmp_packed_lines.append(line)
1993 if r not in tmp: 1993 if r not in tmp:
1994 old_packed += line 1994 old_packed_lines.append(line)
1995 1995
1996 tmp_packed = ''.join(tmp_packed_lines)
1997 old_packed = ''.join(old_packed_lines)
1996 _lwrite(packed_refs, tmp_packed) 1998 _lwrite(packed_refs, tmp_packed)
1997 else: 1999 else:
1998 alt_dir = None 2000 alt_dir = None